boost::urls::segments_ref::clear Clear the contents of the container Synopsis Declared in header <boost/url/segments_ref.hpp> void clear() noexcept; Description All iterators are invalidated. this->url().set_encoded_path( "" ); this->empty() == true Linear in this->url().encoded_query().size() + this->url().encoded_fragment().size(). Throws nothing.