: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 === Postconditions [,cpp] ---- this->empty() == true ---- === Complexity Constant. === Exception Safety No-throw guarantee.