What Is a Curly-Brace Enclosed List If Not an intializer_list?
It is an braced-init-list. A braced-init-list existed before std::initializer_list and is used to initialize aggregates. int arr[] = {1,2,3,4,5}; The above used a braced-init-list to initialize the array, no std::initializer_list is created. On the other hand when you do std::vector<int> foo = {1,2,3,4,5}; foo is not an aggregate so the braced-init-list is used to create … Read more