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. SyntaxConsider a vector 'v'. Syntax would be: ParameterIt does not contain any parameter. Return valueIt does not return any value.
Next TopicC++ Vector
|