77
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