bsl::deque::insert

insert overloads

Synopses

Declared in <bslstl_deque.h>

Insert a move-inserted value before position.

deque<VALUE_TYPE, ALLOCATOR>::iterator
insert(
    const_iterator position,
    BloombergLP::bslmf::MovableRef<value_type> value);
» more...

Insert the elements of values before position.

deque<VALUE_TYPE, ALLOCATOR>::iterator
insert(
    const_iterator position,
    std::initializer_list<value_type> values);
» more...

Insert a copy of value before position.

deque<VALUE_TYPE, ALLOCATOR>::iterator
insert(
    const_iterator position,
    VALUE_TYPE const& value);
» more...

Insert numElements copies of value before position.

deque<VALUE_TYPE, ALLOCATOR>::iterator
insert(
    const_iterator position,
    size_type numElements,
    VALUE_TYPE const& value);
» more...

Insert the range [first, last)] before position.

template<class INPUT_ITERATOR>
deque<VALUE_TYPE, ALLOCATOR>::iterator
insert(
    const_iterator position,
    INPUT_ITERATOR first,
    INPUT_ITERATOR last);
» more...

Return Value

  • iterator to the newly inserted element
  • iterator to the first inserted element

Parameters

NameDescription
positioniterator before which to insert
valuemove-insertable value to insert
valuesinitializer list of elements to insert
numElementsnumber of copies to insert
firstbeginning of the range to insert
lastend of the range to insert