[#bsl-vector-00d-clear] = xref:bsl.adoc[bsl]::xref:bsl/vector-00d.adoc[vector]::clear :relfileprefix: ../../ :mrdocs: Remove all elements from this vector. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void clear() noexcept; ---- == Description Remove all elements from this vector making its size 0. Note that although this vector 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]#