Compartilhar via


basic_string::shrink_to_fit

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

See Also

Reference

basic_string Class

<string>

Other Resources

basic_string Members

<string> Members