[#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. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void removeAll(xref:bsl/vector-00d.adoc[bsl::vector<T>]* buffer = 0); ---- == Description Remove all elements from this queue. If the optionally specified `buffer` is not 0, append to `buffer` a copy of each element removed (in front‐to‐back order of the elements in the queue prior to the invocation of this method). == Parameters [cols="1,4"] |=== | Name| Description | *buffer* | optional vector to receive copies of removed elements |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#