bsl::erase

erase overloads

Synopses

Declared in <bslstl_deque.h>

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

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);
» more...

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

template<
    class VALUE,
    class ALLOCATOR,
    class BDE_OTHER_TYPE>
bsl::list<VALUE, ALLOCATOR>::size_type
erase(
    list<VALUE, ALLOCATOR>& l,
    BDE_OTHER_TYPE const& value);
» more...

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

template<
    class VALUE_TYPE,
    class ALLOCATOR,
    class BDE_OTHER_TYPE>
vector<VALUE_TYPE, ALLOCATOR>::size_type
erase(
    vector<VALUE_TYPE, ALLOCATOR>& vec,
    BDE_OTHER_TYPE const& value);
» more...

Erase (in-place) all the elements from the specified str that compare equal to the specified c, and return the number of erased elements.

template<
    class CHAR_TYPE,
    class CHAR_TRAITS,
    class ALLOCATOR,
    class OTHER_CHAR_TYPE>
bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::size_type
erase(
    basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>& str,
    OTHER_CHAR_TYPE const& c);
» more...