nw::to_underlying

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

Gets the underlying value of an enum.

Note

Replace when C++23 comes around

Template Parameters:

Enum – Any enum type.