Celeritas
0.5.0-56+6b053cd
|
Map enums to strings for user output. More...
#include <EnumStringMapper.hh>
Public Member Functions | |
template<class... Ts> | |
CELER_CONSTEXPR_FUNCTION | EnumStringMapper (Ts... strings) |
Construct with one string per valid enum value. | |
char const * | operator() (T value) const |
Convert an enum to the corresponding string. | |
Map enums to strings for user output.
This should generally be a static const class.
Example: