:relfileprefix: ../../../
[#boost-urls-url_base-clear]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url_base.adoc[pass:[url_base]]::clear


Clear the contents while preserving the capacity


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L166[boost/url/url_base.hpp,window=blank_]>`

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

=== Description

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

=== Constant.

=== No-throw guarantee.








