Customize return value formating. More...
#include <senf/Utils/Console/Parse.hh>
Public Types | |
typedef Type | type |
Static Public Member Functions | |
static void | format (Type const &value, std::ostream &os) |
Write value to os. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<class Type > | |
void | senf_console_format_value (Type const &value, std::ostream &os) |
Return value formatter. More... | |
Customize return value formating.
ReturnValueTraits provides return value formatting. The default implementation provided here will forward the call directly to senf_console_format_value(). The default implementation of that function will write the value to os using standard iostream formatting.
To customize this behavior for some type, either provide an implementation of senf_console_format_value() in the types namespace or provide a specialization of ReturnValueTraits.
The output should not end in a newline since one is added automatically.
typedef Type senf::console::ReturnValueTraits< Type >::type |
|
static |
Write value to os.
|
related |
Return value formatter.