|
Celeritas 0.7.0-dev.245+develop.a7be925e
|
Helper struct for mapping enums to classes. More...
#include <EnumClassUtils.hh>
Public Types | |
| using | enum_type = E |
| using | type = T |
Public Member Functions | |
| constexpr | operator E () const noexcept |
| constexpr enum_type | operator() () const noexcept |
Static Public Attributes | |
| static constexpr enum_type | value = EV |
Helper struct for mapping enums to classes.
This class can be passed as a "tag" to functors that can then retrieve its value or the associated class. It can be implicitly converted into a SurfaceType enum for use in template parameters.