Namespaces
Variants
Views
Actions

Difference between revisions of "Template:cpp/container/shrink to fit"

From cppreference.com
m (Text replace - "<!-- ======== --> " to "")
m (Text replace - "{{complex constant}}" to "Constant")
Line 15: Line 15:
  
 
===Complexity===
 
===Complexity===
{{complex constant}}
+
Constant
  
 
===See also===
 
===See also===

Revision as of 10:33, 10 October 2011

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

Template:param none

Return value

Template:return none

Complexity

Constant

See also

Template:cpp/container/dcl list size