Request the removal of unused capacity.
void shrink_to_fit();
This function attempts to reduce capacity() to size(), which may not succeed.
capacity()
size()
No-throw guarantee.