MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / string_as

Function string_as

extern/boost/boost/test/utils/string_cast.hpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template<typename T>
52inline bool
53string_as( const_string str, T& res )
54{
55 std::istringstream buff( std::string( str.begin(), str.end() ) );
56 buff >> res;
57
58 return !buff.fail() && buff.eof();
59}
60
61//____________________________________________________________________________//
62

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
eofMethod · 0.45

Tested by

no test coverage detected