[#bsl-vector-0ea-shrink_to_fit] = xref:bsl.adoc[bsl]::xref:bsl/vector-0ea.adoc[vector<double>]::shrink_to_fit :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void shrink_to_fit(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#