plll
1.0
|
Provides facilities to convert types to std::string
s.
More...
#include <arithmetic.hpp>
Provides facilities to convert types to std::string
s.
Default implementation for string to type conversion. Uses std::ostringstream
. Only supports bases 8, 10 and 16.
It should define a member type RetVal
, and four static member functions:
static RetVal convert(const Type &)
: converts the given value to a string representation. For numerical types, decimal representation should be used.static RetVal convert(const Type &, unsigned basis)
: converts the given value to a string representation. For numerical types, the given basis should be used.static void convert(std::string &, const Type &)
: converts the given value to a string representation and stores the result the given string. For numerical types, decimal representation should be used.static void convert(std::string &, const Type &, unsigned basis)
: converts the given value to a string representation and stores the result the given string. For numerical types, the given basis should be used. Definition at line 1583 of file arithmetic.hpp.