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.

Synopsis

Declared in <bslstl_vector.h>

void
shrink_to_fit();

Created with MrDocs