insert overloads
Synopses
Declared in <absl/container/inlined_vector.h>
Inserts a copy of v at pos, returning an iterator to the newly inserted element.
Overload of InlinedVector::insert(...) that inserts copies of the elements of list starting at pos, returning an iterator pointing to the first of the newly inserted elements.
iterator
insert(
const_iterator pos,
std::initializer_list<value_type> list);
Overload of InlinedVector::insert(...) that inserts v at pos using move semantics, returning an iterator to the newly inserted element.
iterator
insert(
const_iterator pos,
value_type&& v);
Overload of InlinedVector::insert(...) that inserts n contiguous copies of v starting at pos, returning an iterator pointing to the first of the newly inserted elements.
Overload of InlinedVector::insert(...) that inserts the range [`first`,] last) starting at pos, returning an iterator pointing to the first of the newly inserted elements.
template<
typename ForwardIterator,
EnableIfAtLeastForwardIterator<ForwardIterator> = 0>
iterator
insert(
const_iterator pos,
ForwardIterator first,
ForwardIterator last);
Overload of InlinedVector::insert(...) that inserts the range [`first`,] last) starting at pos, returning an iterator pointing to the first of the newly inserted elements.
template<
typename InputIterator,
DisableIfAtLeastForwardIterator<InputIterator> = 0>
iterator
insert(
const_iterator pos,
InputIterator first,
InputIterator last);
Overload of InlinedVector::insert(...) that inserts the range [`first`,] last) starting at pos, returning an iterator pointing to the first of the newly inserted elements.
template<
typename InputIterator,
DisableIfAtLeastForwardIterator<InputIterator> = 0>
iterator
insert(
const_iterator pos,
InputIterator first,
InputIterator last);
Return Value
-
An
iteratorto the newly inserted element. -
An
iteratorto the first newly inserted element.
Parameters
Name |
Description |
pos |
The position at which to insert. |
v |
The value to copy. |
list |
The initializer list to copy elements from. |
n |
The number of copies to insert. |
first |
An iterator to the beginning of the range. |
last |
An iterator past the end of the range. |
Created with MrDocs