[#absl-InlinedVector-shrink_to_fit]
= xref:absl.adoc[absl]::xref:absl/InlinedVector.adoc[InlinedVector]::shrink&lowbar;to&lowbar;fit
:relfileprefix: ../../
:mrdocs:

Attempts to reduce memory usage by moving elements to (or keeping elements in) the smallest available buffer sufficient for containing `size()` elements&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;inlined&lowbar;vector&period;h&gt;`

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

== Description

If `size()` is sufficiently small, the elements will be moved into (or kept in) the inlined space&period;


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