Function from_string< std::string >

Synopsis

#include "breeze/text/from_string.hpp"

template <>
maybe< std::string > from_string< std::string >(std::string const &s, std::locale const &)

Description

Specialization for std::strings.

Returns
An (always valid) maybe object containing a string which compares equal to s.
Note
This specialization is not just an optimization: it ensures that e.g. " test " converts to " test " and not "test".
Also, the locale argument isn't actually used for this specialization.

Source

Line 42 in breeze/text/from_string.hpp.