:relfileprefix: ../../../
[#3CC6111A9C8E52DEE16C3C9DDF71911D3731123F]

= Function url_base::clear

pass:v,q[Clear the contents while preserving the capacity]


== Synopsis

Declared in header `</boost/url/url_base.hpp#L164[boost/url/url_base.hpp,window=blank_]>`

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

== Description


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

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[No-throw guarantee.]



== Return Value

* `void` 




