Template Function std::to_underlying#

Function Documentation#

template<class Enum>
constexpr std::underlying_type_t<Enum> std::to_underlying(Enum e) noexcept#

Retrieve a value of Enum using its underlying data type.

Template Parameters:

Enum – Enum to get value from.

Parameters:

e – Enum value to retrieve.

Returns:

Enum value represented with its underlying data type.