plll  1.0
plll::arithmetic::implementation::to_string_conversion< Type > Class Template Reference

Provides facilities to convert types to std::strings. More...

#include <arithmetic.hpp>

Detailed Description

template<class Type>
class plll::arithmetic::implementation::to_string_conversion< Type >

Provides facilities to convert types to std::strings.

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.


The documentation for this class was generated from the following file: