|
template<class T , std::size_t N, std::size_t... I> |
constexpr std::array< std::remove_cv_t< T >, N > | to_array_lvalue_impl (T(&a)[N], std::index_sequence< I... >) |
|
template<class T , std::size_t N, std::size_t... I> |
constexpr std::array< std::remove_cv_t< T >, N > | to_array_rvalue_impl (T(&&a)[N], std::index_sequence< I... >) |
|
Helper function template to create an array of fixed length, initialized by the provided initializer list, without explicitly specifying the array size, e.g.
auto arr = v8::to_array<Local<String>>({v8_str("one"), v8_str("two")});
In the future, this may be replaced with or aliased to std::to_array (under consideration for C++20).