Request that unused capacity be released.
Synopsis
Declared in <bslstl_vector.h>
void
shrink_to_fit();
Description
Reduce the capacity of this vector to its size. If an exception is thrown (other than by the move constructor of a non‐copy‐insertable value_type), *this is unaffected. Note that this method has no effect if the capacity is equivalent to the size.
Created with MrDocs