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

Function entries

include/magic_enum/magic_enum.hpp:884–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882
883template <typename E, enum_subtype S, std::size_t... I>
884constexpr auto entries(std::index_sequence<I...>) noexcept {
885 constexpr auto entries = std::array<std::pair<E, string_view>, sizeof...(I)>{{{values_v<E, S>[I], enum_name_v<E, values_v<E, S>[I]>.str()}...}};
886 return entries;
887}
888
889template <typename E, enum_subtype S>
890inline constexpr auto entries_v = entries<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