English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This function is used to change the capacity of the vector (vector) to be equal to the size of the vector (vector). That is, set the capacity to the length of the container.
The syntax of the vector (vector) 'v' is as follows:
v.shrink_to_fit();
It does not contain any parameters.
It does not return any value.