[Solved] Why did STL made a(nother) distinction between a std::array and a std::initializer_list

The question betrays some misunderstandings about what is going on here. std::array is an array object. It is an object whose storage size is the storage for its array elements. std::initializer_list is a pointer to an array (one created by the compiler). You can heap-allocate std::array for example; you cannot heap-allocate std::initializer_list. Well, you can, … Read more