Does std::array guarantee allocation on the stack only?
TL;DR: yes, it is on the stack. The longer story: C++ has no concept of stack or heap. Those are implementation details, and there is at least one platform that does not use a traditional stack (but rather linked list of heap allocations for it). It has automatic storage and the free store. new accesses … Read more