fmt::enums::format_as

Converts e to its underlying type so that enum types are formattable by default via argument-dependent lookup.

Synopsis

Declared in <fmt/format.h>

template<typename Enum>
constexpr
underlying_t<Enum>
format_as(Enum e) noexcept;

Return Value

e cast to its underlying type.

Parameters

NameDescription
eThe enum value to convert.