Erase every element of deq that compares equal to value.

Synopsis

Declared in <bslstl_deque.h>

template<
    class VALUE_TYPE,
    class ALLOCATOR,
    class BDE_OTHER_TYPE>
deque<VALUE_TYPE, ALLOCATOR>::size_type
erase(
    deque<VALUE_TYPE, ALLOCATOR>& deq,
    BDE_OTHER_TYPE const& value);

Description

Erase all the elements in the specified deque deq that compare equal to the specified value. Return the number of elements erased.

Return Value

number of elements erased

Parameters

Name

Description

deq

deque from which matching elements are erased

value

value compared for equality with each element

Created with MrDocs