:relfileprefix: ../../../ [#boost-urls-segments_ref-clear] = xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_ref.adoc[pass:[segments_ref]]::clear Clear the contents of the container == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- void clear() noexcept; ---- == Description All iterators are invalidated. === Effects [,cpp] ---- this->url().set_encoded_path( "" ); ---- === Postconditions [,cpp] ---- this->empty() == true ---- === Complexity Linear in `this->url().encoded_query().size() + this->url().encoded_fragment().size()`. === Exception Safety Throws nothing.