std::experimental::to_array (3) - Linux Manuals
std::experimental::to_array: std::experimental::to_array
NAME
std::experimental::to_array - std::experimental::to_array
Synopsis
Defined in header <experimental/array>
template <class T, std::size_t N> (library fundamentals TS v2)
constexpr std::array<std::remove_cv_t<T>, N> to_array(T (&a)[N]);
Creates a std::array from the built-in array a. The elements of the std::array are copy-initialized from the corresponding element of a.
Parameters
a - the built-in array to be used to initialize the std::array
Return value
An std::array object whose elements are copy-initialized from the corresponding element of a.
Possible implementation
Example
// Run this code
See also
make_array (function template)