Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
segments_ref::insert (1 of 3 overloads)

Insert segments.

Synopsis
iterator
insert(
    iterator before,
    string_view s);
Description

This function inserts a segment before the specified position. Reserved characters in the segment are automatically escaped.

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

Complexity

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

Exception Safety

Strong guarantee. Calls to allocate may throw.

Return Value

An iterator to the inserted segment.

Parameters

Name

Description

before

An iterator before which the segment will be inserted. This may be equal to end().

s

The segment to insert.


PrevUpHomeNext