There is no Standard Library container that can contain a different number of elements without using dynamic memory allocation. All STL containers require a fixed size determined at compile-time or allocate memory dynamically if their size needs to change at runtime.
Asked: 2023-06-15 10:34:28 +0000
Seen: 8 times
Last updated: Jun 15 '23