| 1350 | // Returns std::array with names, sorted by enum value. |
| 1351 | template <typename E, detail::enum_subtype S = detail::subtype_v<E>> |
| 1352 | [[nodiscard]] constexpr auto enum_names() noexcept -> detail::enable_if_t<E, detail::names_t<E, S>> { |
| 1353 | using D = std::decay_t<E>; |
| 1354 | static_assert(detail::is_reflected_v<D, S>, "magic_enum requires enum implementation and valid max and min."); |
| 1355 | |
| 1356 | return detail::names_v<D, S>; |
| 1357 | } |
| 1358 | |
| 1359 | // Returns std::array with pairs (value, name), sorted by enum value. |
| 1360 | template <typename E, detail::enum_subtype S = detail::subtype_v<E>> |
nothing calls this directly
no outgoing calls
no test coverage detected