|
Celeritas 0.7.0-dev.179+develop.ec08af0c9
|
#include <algorithm>#include <iomanip>#include <set>#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 "celeritas/phys/AtomicNumber.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. | |
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.