Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Discards the excess capacity of the string.
void shrink_to_fit();
Remarks
This member function eliminates any unneeded storage in the container.
Requirements
Header: <string>
Namespace: std