MCPcopy Create free account
hub / github.com/Neargye/magic_enum / names

Function names

include/magic_enum/magic_enum.hpp:872–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870
871template <typename E, enum_subtype S, std::size_t... I>
872constexpr auto names(std::index_sequence<I...>) noexcept {
873 constexpr auto names = std::array<string_view, sizeof...(I)>{{enum_name_v<E, values_v<E, S>[I]>.str()...}};
874 return names;
875}
876
877template <typename E, enum_subtype S>
878inline constexpr auto names_v = names<E, S>(std::make_index_sequence<count_v<E, S>>{});

Callers

nothing calls this directly

Calls 1

strMethod · 0.45

Tested by

no test coverage detected