Celeritas
0.5.0-56+6b053cd
|
Helper struct for mapping enums to classes. More...
#include <EnumClassUtils.hh>
Public Types | |
using | enum_type = E |
using | type = T |
Public Member Functions | |
CELER_CONSTEXPR_FUNCTION | operator E () const noexcept |
CELER_CONSTEXPR_FUNCTION 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.