4 ms·
What you need to search for is "list initialization" (eg https://en.cppreference.com/w/cpp/language/list_initialization https://en.cppreference.com/w/cpp/langua
by nspattak 5y ago
What you need to search for is "list initialization" (eg https://en.cppreference.com/w/cpp/language/list_initialization https://en.cppreference.com/w/cpp/language/list_initializati...) . I understand that it is not the obvious thing to do. If you search for c++11, it was one of the features that were introduced then. lambda expressions were also introduced in c++11 but are also found in other languages so they are easier to understand for non c++ people.