|
|
|
|
|
|
The class std::initializer_list<> is a first-class C++11 standard library type. However, they can only be initially constructed statically by the C++11 compiler through the use of the {} syntax. The list can be copied once constructed, though this is only a copy-by-reference. An initializer list is constant; its members cannot be changed once the initializer list is created, nor can the data in those members be changed. |