- 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.

Get hands-on with 1400+ tech skills courses.