[#BloombergLP-bdlc-Queue-removeAll]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::removeAll
:relfileprefix: ../../../
:mrdocs:

Remove all elements from this queue&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
removeAll(xref:bsl/vector-00d.adoc[bsl::vector&lt;T&gt;]* buffer = 0);
----

== Description

Remove all elements from this queue&period; If the optionally specified `buffer` is not 0, append to `buffer` a copy of each element removed (in front&hyphen;to&hyphen;back order of the elements in the queue prior to the invocation of this method)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| optional vector to receive copies of removed elements
|===


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