You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let <em>Ui</em> be <code>decay_t<</code><em>Ti</em><code>></code> for each <em>Ti</em> in <code>Types</code>.
189
+
</p>
190
+
<cxx-remarks>
191
+
The program is ill-formed if <code>D</code> is <code>void</code> and at least one <em>Ui</em> is a specialization of <code>reference_wrapper</code>.
192
+
</cxx-remarks>
193
+
<cxx-returns>
194
+
<code>array<<var>VT</var>, sizeof...(Types)>{ std::forward<Types>(t)... }</code>, where <code><var>VT</var></code> is <code>common_type_t<Types...></code> if <code>D</code> is <code>void</code>, otherwise <code><var>VT</var></code> is <code>D</code>.
195
+
</cxx-returns>
196
+
197
+
<cxx-example>
198
+
<pre><code>int i = 1; int& ri = i;
199
+
auto a1 = make_array(i, ri); // a1<i> is of type </i>array<int, 2>
200
+
auto a2 = make_array(i, ri, 42L); // a2<i> is of type </i>array<long, 3>
201
+
auto a3 = make_array<long>(i, ri); // a3<i> is of type </i>array<long, 2>
202
+
auto a4 = make_array<long>(); // a4<i> is of type </i>array<long, 0>
203
+
auto a5 = make_array(); // <i>ill-formed</i></code></pre>
0 commit comments