Home » C++ Vector shrink_to_fit() function

C++ Vector shrink_to_fit() function

by Online Tutorials Library

C++ Vector shrink_to_fit()

This function is used to change the capacity of the vector and makes it equal to the size of the vector.

Syntax

Consider a vector ‘v’. Syntax would be:

Parameter

It does not contain any parameter.

Return value

It does not return any value.

Next TopicC++ Vector

You may also like