Insert segments

Synopses

Insert segments

iterator
insert(
    iterator before,
    core::string_view s);

Insert segments

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

Insert segments

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

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 beginning of the range of segments to insert.

last

The end of the range of segments to insert.

Created with MrDocs