An object of type std::initializer_list<T> is a lightweight proxy object, which provides access to an array of objects of type T, allocated by the implementation in unspecified storage (which could be automatic, temporary, or static read-only memory, depending on the situation)

The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.

This array is initialized and a std::initializer_list object is constructed when a braced-init-list is used in list-Initialisierung, including function-call list initialization and assignment expression (not to be confused with Konstruktor Initialisierungsliste), or when braced-init-list is bound to auto, including in a ranged for loop.

The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.

Initializer list may be implemented as a pair of pointers or pointer and length. Copying a std::initializer_list does not copy the underlying objects. The underlying array is not guaranteed to exist after the lifetime of the original initializer list object has ended.

The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.