[#absl-chunked_queue-clear] = xref:absl.adoc[absl]::xref:absl/chunked_queue.adoc[chunked_queue]::clear :relfileprefix: ../../ :mrdocs: Erases all elements from the container. == Synopsis Declared in `<absl/container/chunked_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void clear(); ---- == Description Note: Leaves one empty block allocated as an optimization. To free all memory, call shrink_to_fit() after calling clear(). [.small]#Created with https://www.mrdocs.com[MrDocs]#