halcheck 1.0
Loading...
Searching...
No Matches

◆ of_string()

template<typename T >
lib::optional< T > halcheck::lib::of_string ( const std::string & value)

Converts a std::string to a value using operator>>.

Template Parameters
TThe type of value to convert to.
Parameters
valueThe string to convert from.
Returns
The result of the conversion.

This function can only be called if lib::is_parsable<T>() holds.