Erase segments
<boost/url/segments_ref.hpp>
iterator
erase(
    iterator first,
    iterator last) noexcept;
This function removes a range of segments.
All iterators that are equal to first or come after are invalidated.
Linear in this->url().encoded_resource().size().
Throws nothing.
| Name | Description | 
|---|---|
| first | The beginning of the range to remove. | 
| last | The end of the range to remove. |