: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 `` [source,cpp,subs="verbatim,macros,-callouts"] ---- void clear() noexcept; ---- === Description [,cpp] ---- this->empty() == true ---- === Constant. === No-throw guarantee.