Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/array"

From cppreference.com
< cpp‎ | container
(Undo revision 160282 by Hello World (talk))
m ({{dsc begn}} -> {{dsc begin}})
Line 1: Line 1:
 +
<!--
 
{{cpp/title|array}}
 
{{cpp/title|array}}
 
{{cpp/container/array/navbar}}
 
{{cpp/container/array/navbar}}
Line 98: Line 99:
 
{
 
{
 
     // Construction uses aggregate initialization
 
     // Construction uses aggregate initialization
     std::array<int, 3> a1{<!---->{1, 2, 3}<!---->}; // Double-braces required in C++11 prior to
+
     std::array<int, 3> a1{<!--{1, 2, 3}<!--}; // Double-braces required in C++11 prior to
 
                                       // the CWG 1270 revision (not needed in C++11
 
                                       // the CWG 1270 revision (not needed in C++11
 
                                       // after the revision and in C++14 and beyond)
 
                                       // after the revision and in C++14 and beyond)
Line 137: Line 138:
  
 
{{langlinks|de|es|fr|it|ja|pl|pt|ru|zh}}
 
{{langlinks|de|es|fr|it|ja|pl|pt|ru|zh}}
 +
-->

Revision as of 04:59, 9 October 2023