Returns the underlying integer value of an enum.
Declared in <llvm/ADT/STLForwardCompat.h>
template<typename Enum>
[[nodiscard]]
constexpr
std::underlying_type_t<Enum>
to_underlying(Enum E);
Backport of C++23 std::to_underlying.
| Name | Description |
|---|---|
| E | Enumeration value to convert. |