- Exercise
Let's solve an exercise to better understand the concept.
We'll cover the following
Problem statement #
Create an std::vector
and determine its size
and capacity before and after a call to shrink_to_fit
.
Let's solve an exercise to better understand the concept.
Create an std::vector
and determine its size
and capacity before and after a call to shrink_to_fit
.