Designated Initializers in C++ 20

C++ supports direct assignment initialization for aggregate types, in the form of: T object = { arg1, arg2, … }; Starting from C++11, list initialization was introduced, which is also applicable to aggregate types: T object { arg1, arg2, … }; C++20 introduces a new form of initialization for aggregate types, known as designated initialization … Read more