[#BloombergLP-bdlcc-Deque-removeAll-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Deque.adoc[Deque]::removeAll :relfileprefix: ../../../ :mrdocs: If the optionally specified `buffer` is non‐zero, append all the elements from this container to `*buffer` in the same order, then, regardless of whether `buffer` is zero, clear this container. Note that the previous contents of `*buffer` are not discarded ‐‐ the removed items are appended to it. == Synopsis Declared in `<bdlcc_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void removeAll(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#