[#boost-urls-url_base-clear]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_base.adoc[url&lowbar;base]::clear
:relfileprefix: ../../../
:mrdocs:

Clear the contents while preserving the capacity

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L165[boost&sol;url&sol;url&lowbar;base&period;hpp]&gt;`

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

== Postconditions

[,cpp]
----
this->empty() == true
----
== Complexity

Constant&period;

== Exception Safety

No&hyphen;throw guarantee&period;


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