Same as the preceding erase overload for bitwise‐copyable types.
Synopsis
Declared in <bslalg_dequeprimitives.h>
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);
Return Value
iterator to the element immediately following the removed elements
Parameters
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 |
Created with MrDocs