20 General utilities library [utilities]

20.2 Utility components [utility]

20.2.8 Function template to_­underlying [utility.underlying]

template<class T> constexpr underlying_type_t<T> to_underlying(T value) noexcept;
Returns: static_­cast<underlying_­type_­t<T>>(value).