BloombergLP::bslalg::DequePrimitives::erase

erase overloads

Synopses

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...

Return Value

iterator to the element immediately following the removed elements

Parameters

NameDescription
toBeginloads the new beginning iterator of the deque
toEndloads the new end iterator of the deque
fromBegincurrent beginning of the deque
firstbeginning of the range to erase
lastend of the range to erase (one past the last)
fromEndcurrent end of the deque
allocatorallocator used to destroy elements
traitsunused trait tag for overload resolution