[#bsl-vector-020-clear]
= xref:bsl.adoc[bsl]::xref:bsl/vector-020.adoc[vector&lt;float&gt;]::clear
:relfileprefix: ../../
:mrdocs:

Remove all elements from this vector making its size 0&period; Note that although this vector is empty after this method returns, it preserves the same capacity it had before the method was called&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
clear() noexcept;
----


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