boost::urls::segments_encoded_ref::insert

Insert segments

Synopses

Declared in <boost/url/segments_encoded_ref.hpp>

Insert segments

iterator
insert(
    iterator before,
    pct_string_view s);
» more...

Insert segments

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

Insert segments

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

Exceptions

NameThrown on
system_errorThe 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

NameDescription
beforeAn iterator before which the segment is inserted. This may be equal to end().
sThe segment to insert.
initThe list of segments to insert.
firstThe first element in the range to insert.
lastOne past the last element in the range to insert.