What is aggregate initialization?
Show answer and explanation
Aggregate initialization initializes an aggregate's elements directly from a braced list, in declaration order or with designated initializers where supported. Whether a class is an aggregate depends on standard-version rules about constructors, bases, virtual functions, and access.
Aggregate initialization initializes an aggregate's elements directly from a braced list, in declaration order or with designated initializers where supported. Whether a class is an aggregate depends on standard-version rules about constructors, bases, virtual functions, and access.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.