ΒΆtemplate <typename Enum>
constexpr auto underlying(Enum e) noexcept
-> underlying_t<Enum>
template <typename Enum>
constexpr auto underlying(Enum e) noexcept
-> underlying_t<Enum>
Description
\rstConverts ``e`` to the underlying type. *Example**:: enum class color { red, green, blue }; auto s = fmt::format("{}", fmt::underlying(color::red));\endrst
Declared at: third_party/fmt/include/fmt/format.h:4115
Templates
- Enum
Parameters
- Enum e