Erase segments

Synopsis

Declared in header </boost/url/segments_ref.hpp#L498[boost/url/segments_ref.hpp,window=blank_]>

segments_base::iterator
erase(segments_base::iterator pos) noexcept;

Description

This function removes a segment. All iterators that are equal to pos or come after are invalidated.

Complexity

Linear in this->url().encoded_resource().size().

Exception Safety

Throws nothing.

Return Value

  • iterator

Parameters

Name Type

pos

iterator