Size and Capacity of STL Containers
Size and capacity are concepts that look somewhat similar from afar. But mixing them up can lead to under-optimized or even plain wrong code. This article explains all about size and capacity of standard containers, and how these two concepts differ. A big thanks to Stephan T. Lavavej, who kindly provided his feedback on the […]