Insert segments

Synopses

Insert segments

Insert segments

iterator
insert(
    iterator before,
    std::initializer_list<pct_string_view> init);

Insert segments

template<class FwdIt>
iterator
insert(
    iterator before,
    FwdIt first,
    FwdIt last);

Exceptions

Name

Thrown on

system_error

The segment contains an invalid percent‐encoding.

Return Value

  • An iterator to the inserted segment.

  • An iterator to the first element inserted, or before if init.size() == 0.

  • An iterator to the first segment inserted, or before if init.empty().

Parameters

Name

Description

before

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

s

The segment to insert.

init

The list of segments to insert.

first

The first element in the range to insert.

last

One past the last element in the range to insert.

Created with MrDocs