المتغيرات
فضاءات التسمية
أفعال

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

من cppreference.com
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.

Information on iterator invalidation is copied from here

محتويات

[تعديل] Parameters

(none)

قالب:par hreqقالب:par req concept

[تعديل] Return value

(none)

[تعديل] Complexity

At most linear in the size of the container.

[تعديل] Example

قالب:include

[تعديل] See also

قالب:dsc mem fun