std::to_underlying
From cppreference.com
Defined in header <utility>
|
||
template< class Enum > constexpr std::underlying_type_t<Enum> to_underlying( Enum e ) noexcept; |
(since C++23) | |
Converts an enumeration to its underlying type. Equivalent to return static_cast<