Variable magic_enum::detail::max_v

Variable Documentation

template<typename E, enum_subtype S, typename U = std::underlying_type_t<E>>
constexpr auto magic_enum::detail::max_v = (count_v<E, S> > 0) ? static_cast<U>(values_v<E, S>.back()) : U{0}