[#bsl-basic_string-0ce-clear]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic&lowbar;string&lt;char16&lowbar;t&gt;]::clear
:relfileprefix: ../../
:mrdocs:

Reset this string to an empty value&period; Note that the capacity may change (or not if `BASIC&lowbar;STRING&lowbar;DEALLOCATE&lowbar;IN&lowbar;CLEAR` is `false`)&period; Note that the Standard doesn&apos;t allow to reduce capacity on `clear`&period;

== Synopsis

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

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


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