[#absl-chunked_queue-clear]
= xref:absl.adoc[absl]::xref:absl/chunked_queue.adoc[chunked&lowbar;queue]::clear
:relfileprefix: ../../
:mrdocs:

Erases all elements from the container&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;chunked&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
clear();
----

== Description

Note&colon; Leaves one empty block allocated as an optimization&period; To free all memory, call shrink&lowbar;to&lowbar;fit() after calling clear()&period;


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