Namespaces
Variants
Views
Actions

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

From cppreference.com
m (Text replace - "{{complex constant}}" to "Constant")
m (Text replace - "{{param none}}" to "(none)")
Line 9: Line 9:
  
 
===Parameters===
 
===Parameters===
{{param none}}
+
(none)
  
 
===Return value===
 
===Return value===

Revision as of 13:18, 11 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

(none)

Return value

Template:return none

Complexity

Constant

See also

Template:cpp/container/dcl list size