|
libpniio
|
scalar formatter More...
#include <formatter.hpp>

Public Member Functions | |
| pni::core::string | operator() (const T &v) const |
| generate output More... | |
Private Types | |
| typedef std::back_insert_iterator < pni::core::string > | iterator_type |
| output iterator type More... | |
| typedef get_generator < iterator_type, T >::type | generator_type |
| generator type More... | |
Private Attributes | |
| generator_type | generator |
| generator instance More... | |
This is the default implementation of a formatter. It is intended to be used with scalar and complex primitive types.
formatter<T> works for the following types
| T | the type which should be converted to a string |
|
private |
|
private |
|
inline |
Take the input value and convert it to its string representation.
| value | a value of type T |
|
private |
1.8.8