[#bsl-deque-0c-clear] = xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::clear :relfileprefix: ../../ :mrdocs: Remove all elements from this deque, leaving its capacity unchanged. == Synopsis Declared in `<bslstl_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void clear() noexcept; ---- == Description Remove all elements from this deque making its size 0. Note that although this deque is empty after this method returns, it preserves the same capacity it had before the method was called. [.small]#Created with https://www.mrdocs.com[MrDocs]#