Celeritas
0.5.0-56+6b053cd
|
#include <iomanip>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "corecel/OpaqueId.hh"
#include "corecel/cont/Array.hh"
#include "corecel/cont/Span.hh"
#include "corecel/data/Collection.hh"
#include "corecel/math/Quantity.hh"
#include "Join.hh"
#include "detail/ReprImpl.hh"
Functions | |
template<class T > | |
detail::Repr< T > | celeritas::repr (T const &obj, char const *name=nullptr) |
Return a streamable object that prints out a C++-style. More... | |
detail::Repr<T> celeritas::repr | ( | T const & | obj, |
char const * | name = nullptr |
||
) |
Return a streamable object that prints out a C++-style.
Example:
The 'name' argument defaults to null (just printing the value); if a string is given a full variable declaration such as std::string foo{"bar"}
will be printed. If the name is empty, an anonymous value std::string{"bar"}
will be printed.