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

Function to_array_impl

include/magic_enum/magic_enum_containers.hpp:453–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452template <typename E, typename T, std::size_t N, std::size_t... I>
453constexpr array<E, std::remove_cv_t<T>> to_array_impl(T (&a)[N], std::index_sequence<I...>) {
454 return {{a[I]...}};
455}
456
457template <typename E, typename T, std::size_t N, std::size_t... I>
458constexpr array<E, std::remove_cv_t<T>> to_array_impl(T(&&a)[N], std::index_sequence<I...>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected