Namespaces
Variants
Views
Actions

std::{{{1}}}::shrink_to_fit

From cppreference.com
Revision as of 09:10, 14 December 2011 by Cubbi (Talk | contribs)

Template:cpp/container//sidebar

void shrink_to_fit();
Template:mark c++11 feature

Requests the removal of unused capacity.

It is a non-binding request to reduce capacity to size. It depends on the implementation if the request is fulfilled.

Contents

Parameters

(none)

Return value

(none)

Complexity

Constant

Example

Template:example cpp

See also

Template:cpp/container/dcl list sizeTemplate:cpp/container/dcl list capacity