erase overloads
Declared in <bslalg_dequeprimitives.h>
Erase a range of elements from a deque and close the gap.
template<class ALLOCATOR>
static
DequePrimitives<VALUE_TYPE, BLOCK_LENGTH>::Iterator
erase(
Iterator* toBegin,
Iterator* toEnd,
Iterator fromBegin,
Iterator first,
Iterator last,
Iterator fromEnd,
ALLOCATOR allocator);
» more...
Same as the preceding erase overload for bitwise-copyable types.
template<class ALLOCATOR>
static
DequePrimitives<VALUE_TYPE, BLOCK_LENGTH>::Iterator
erase(
Iterator* toBegin,
Iterator* toEnd,
Iterator fromBegin,
Iterator first,
Iterator last,
Iterator fromEnd,
ALLOCATOR allocator,
bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_BITWISE_COPYABLE_TRAITS> traits);
» more...
Erase a range of elements from a deque (nil traits).
template<class ALLOCATOR>
static
DequePrimitives<VALUE_TYPE, BLOCK_LENGTH>::Iterator
erase(
Iterator* toBegin,
Iterator* toEnd,
Iterator fromBegin,
Iterator first,
Iterator last,
Iterator fromEnd,
ALLOCATOR allocator,
bsl::integral_constant<int, BSLALG_DEQUEPRIMITIVES_NIL_TRAITS> traits);
» more...
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 |
| traits | unused trait tag for overload resolution |