[#boost-urls-url_base-clear] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_base.adoc[url_base]::clear :relfileprefix: ../../../ :mrdocs: Clear the contents while preserving the capacity == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L166[boost/url/url_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void clear() noexcept; ---- == Description === Postconditions [,cpp] ---- this->empty() == true ---- === Complexity Constant. === Exception Safety No‐throw guarantee. [.small]#Created with https://www.mrdocs.com[MrDocs]#