deductionguidesforstdarray(3)
deductionguidesforstd::array - deductionguidesforstd::array
Synopsis
Defined in header <array> template <class T, class... U> (since C++17) array(T, U...) -> array<T, 1 + sizeof...(U)>;One deduction_guide is provided for std::array to provide an equivalent of std::experimental::make_array for construction of std::array from a variadic parameter pack. The program is ill-formed if (std::is_same_v<T, U> && …) is not true
Example
// Run this code