function template
std::to_underlying
- Header
<utility>- Draft
- [utility.underlying]
- Scope
std- cppreference
- std::to_underlying
Synopsis
template<class T>
requires is_enum_v<T>
[[nodiscard]] constexpr underlying_type_t<T> to_underlying(T value) noexcept;