bsl::deque::erase

erase overloads

Synopses

Declared in <bslstl_deque.h>

Erase the element at position from this deque.

deque<VALUE_TYPE, ALLOCATOR>::iterator
erase(const_iterator position);
» more...

Erase the half-open range [first, last)] from this deque.

deque<VALUE_TYPE, ALLOCATOR>::iterator
erase(
    const_iterator first,
    const_iterator last);
» more...

Return Value

  • iterator to the element following the erased element
  • iterator to the element following the last erased element

Parameters

NameDescription
positioniterator to the element to erase
firstiterator to the first element to erase
lastiterator past the last element to erase