[#bsl-deque-0c-shrink_to_fit]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::shrink&lowbar;to&lowbar;fit
:relfileprefix: ../../
:mrdocs:

Minimize unused capacity without moving contained elements&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
shrink&lowbar;to&lowbar;fit();
----

== Description

Minimize the memory used by this deque to the extent possible without moving any contained elements&period; If an exception is thrown, the value of this object is unchanged&period; Note that this method has no effect on the memory used by individual elements of the (template parameter) `VALUE&lowbar;TYPE`&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
