insert overloads

Synopses

Declared in <prevector.h>

Inserts value before pos and returns an iterator to the inserted element.

iterator
insert(
    iterator pos,
    unsigned char const& value);

Inserts count copies of value before pos.

void
insert(
    iterator pos,
    size_type count,
    unsigned char const& value);

Inserts the elements of the range [first, last) before pos.]

template<std::input_iterator InputIterator>
void
insert(
    iterator pos,
    InputIterator first,
    InputIterator last);

Return Value

An iterator to the inserted element.

Parameters

Name

Description

pos

Iterator to the position to insert before.

value

The value to insert.

count

The number of copies to insert.

first

Iterator to the first element to insert.

last

Iterator one past the last element to insert.

Created with MrDocs