Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
List initialization is a type of initialization.
List initialization is the first of the four initialization styles [1], prefer this way of initialization for named types [2].
T a { b }; //Preferred [2] |
Prefer the = syntax for the initialization in declarations using auto [3]
auto a { b }; |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.