Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA