aggregate initialization

aggregate initialization

Initializes an aggregate from braced-init-list.

Syntax

T object = {arg1, arg2, ...}; (1)
T object {arg1, arg2, ...}; (2) (since C++11)

Explanation

Aggregate initialization is a form of list-initialization, which initializes aggregates.

An aggregate is one of the following types: