<boost/url/segments_encoded_ref.hpp>
iterator erase(iterator pos) noexcept;
This function removes a segment.
All iterators that are equal to pos or come after are invalidated.
pos
Linear in this->url().encoded_resource().size().
this->url().encoded_resource().size()
Throws nothing.