Difference between revisions of "Template:cpp/container/shrink to fit"
From cppreference.com
m (Text replace - "{{returns}}" to "===Return value===") |
m (Text replace - "<!-- ======== --> " to "") |
||
Line 8: | Line 8: | ||
It is a non-binding request to reduce {{#ifeq:{{{1|}}}|vector|{{rlpt|capacity}}|{{tt|capacity}}}} to {{rlpt|size}}. It depends on the implementation if the request is fulfilled. | It is a non-binding request to reduce {{#ifeq:{{{1|}}}|vector|{{rlpt|capacity}}|{{tt|capacity}}}} to {{rlpt|size}}. It depends on the implementation if the request is fulfilled. | ||
− | |||
===Parameters=== | ===Parameters=== | ||
{{param none}} | {{param none}} | ||
− | |||
===Return value=== | ===Return value=== | ||
{{return none}} | {{return none}} | ||
− | |||
===Complexity=== | ===Complexity=== | ||
{{complex constant}} | {{complex constant}} | ||
− | |||
===See also=== | ===See also=== | ||
Revision as of 18:21, 2 August 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 |