boost::urls::segments_encoded_ref::erase

Erase segments

Synopsis

Declared in <boost/url/segments_encoded_ref.hpp>
iterator
erase(
    iterator first,
    iterator last) noexcept;


Description

This function removes a range of segments from the container.

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

Complexity

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

Exception Safety

Throws nothing.

Return Value

An iterator to one past the removed range.

Parameters

Name Description
first The first element in the range to erase.
last One past the last element in the range to erase.

Created with MrDocs