Insert elements into this vector.
Synopses
Declared in <bslstl_vector.h>
Insert elements into this vector.
vector<VALUE_TYPE*, ALLOCATOR>::iterator
insert(
const_iterator position,
std::initializer_list<VALUE_TYPE*> values);
Insert elements into this vector.
vector<VALUE_TYPE*, ALLOCATOR>::iterator
insert(
const_iterator position,
VALUE_TYPE* value);
Insert elements into this vector.
vector<VALUE_TYPE*, ALLOCATOR>::iterator
insert(
const_iterator position,
size_type numElements,
VALUE_TYPE* value);
Insert elements into this vector.
template<class INPUT_ITER>
iterator
insert(
const_iterator position,
INPUT_ITER first,
INPUT_ITER last);
Return Value
iterator referring to the first newly inserted element, or position if none
Parameters
Name |
Description |
position |
element position or insertion point |
values |
initializer list of elements |
value |
element value |
numElements |
number of elements to insert or assign |
first |
beginning of the range (inclusive) |
last |
end of the range (exclusive) |
Created with MrDocs