12 template<
typename Enum>
14 return static_cast<Enum
>(std::numeric_limits<typename std::underlying_type<Enum>::type>::max());
20 template<
typename Enum>
22 return static_cast<typename std::underlying_type<Enum>::type
>(e);
carl is the main namespace for the library.
constexpr auto underlying_enum_value(Enum e)
Casts an enum value to a value of the underlying number type.
constexpr Enum invalid_enum_value()
Returns an enum value that is (most probably) not a valid enum value.