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

Function to_array

include/magic_enum/magic_enum_containers.hpp:465–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463
464template <typename E, typename T, std::size_t N>
465constexpr std::enable_if_t<(enum_count<E>() == N), array<E, std::remove_cv_t<T>>> to_array(T (&a)[N]) {
466 return detail::to_array_impl<E>(a, std::make_index_sequence<N>{});
467}
468
469template <typename E, typename T, std::size_t N>
470constexpr std::enable_if_t<(enum_count<E>() == N), array<E, std::remove_cv_t<T>>> to_array(T(&&a)[N]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected