Function from_string


#include "breeze/text/from_string.hpp"

template <typename T>
maybe< T > from_string(std::string const &s, std::locale const &loc=std::locale())


Tries to form an object of type T given its textual representation.

Type requirements
T shall be DefaultConstructible and MoveConstructible. Furthermore it shall be input streamable from a std::istream, meaning that an operator >>() function may be called that takes an instance of std::istream as first argument and an instance of T as second argument.
s and T being equal, the result of this function will, in general, also depend on the locale argument.


Line 42 in breeze/text/from_string.hpp.