Celeritas
0.5.0-86+4a8eea4
|
Traits for writing an object for diagnostic or testing output. More...
#include <Repr.hh>
Static Public Member Functions | |
static void | print_type (std::ostream &os, char const *name=nullptr) |
static void | init (std::ostream &) |
static void | print_value (std::ostream &os, T const &value) |
Traits for writing an object for diagnostic or testing output.
The "streamable" traits usually write so that the object can be injected into test code. The default tries to use whatever ostream operator is available. Other overrides are provided for collections, characters, and more?