Erase a range of elements from a deque and close the gap.
Declared in <bslalg_dequeprimitives.h>
template<class ALLOCATOR>
static
DequePrimitives<VALUE_TYPE, 1>::Iterator
erase(
Iterator* toBegin,
Iterator* toEnd,
Iterator fromBegin,
Iterator first,
Iterator last,
Iterator fromEnd,
ALLOCATOR allocator);
iterator to the element immediately following the removed elements
| Name | Description |
|---|---|
| toBegin | loads the new beginning iterator of the deque |
| toEnd | loads the new end iterator of the deque |
| fromBegin | current beginning of the deque |
| first | beginning of the range to erase |
| last | end of the range to erase (one past the last) |
| fromEnd | current end of the deque |
| allocator | allocator used to destroy elements |