boost::urls::segments_encoded_ref::erase

Erase segments

Synopsis

iterator
erase(iterator pos) noexcept;
iterator
erase(
    iterator first,
    iterator last) noexcept;

Description

This function removes a segment.

All iterators that are equal to pos or come after are invalidated.

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

Throws nothing.

Return Value

An iterator to one past the removed segment.

Parameters

Name Description

pos

An iterator to the element.

first,

last The range of segments to erase.