Namespaces
Variants
Views
Actions

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

From cppreference.com
Revision as of 03:58, 1 June 2013 by P12bot (Talk | contribs)

void shrink_to_fit();
(since C++11)

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)

Type requirements

Template:par req concept

Return value

(none)

Complexity

Linear in the size of the container.

Example

See also

returns the number of elements
(public member function of std::{{{1}}}) [edit]