std::vector::resize() vs. std::vector::reserve()
In C++, vector resize() and vector reserve() are two member methods of vector to manage memory of the container. In this article, we will learn the differences between vector resize() and vector reserve() method in C++. Vector size() modifies the size of the vector, i.e., the number of elements curr