erase_if overloads
Declared in <bslstl_deque.h>
Erase all the elements in the specified deque deq that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class VALUE_TYPE,
class ALLOCATOR,
class PREDICATE>
deque<VALUE_TYPE, ALLOCATOR>::size_type
erase_if(
deque<VALUE_TYPE, ALLOCATOR>& deq,
PREDICATE predicate);
» more...
Erase all the elements in the specified list l that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class VALUE,
class ALLOCATOR,
class PREDICATE>
bsl::list<VALUE, ALLOCATOR>::size_type
erase_if(
list<VALUE, ALLOCATOR>& l,
PREDICATE predicate);
» more...
Erase all the elements in the specified vector vec that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class VALUE_TYPE,
class ALLOCATOR,
class PREDICATE>
vector<VALUE_TYPE, ALLOCATOR>::size_type
erase_if(
vector<VALUE_TYPE, ALLOCATOR>& vec,
PREDICATE predicate);
» more...
Erase (in-place) all the elements from the specified str where the specified pred returns true, and return the number of erased elements.
template<
class CHAR_TYPE,
class CHAR_TRAITS,
class ALLOCATOR,
class UNARY_PREDICATE>
bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::size_type
erase_if(
basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>& str,
UNARY_PREDICATE const& pred);
» more...
Erase all the elements in the specified multiset ms that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class COMPARATOR,
class ALLOCATOR,
class PREDICATE>
bsl::multiset<KEY, COMPARATOR, ALLOCATOR>::size_type
erase_if(
multiset<KEY, COMPARATOR, ALLOCATOR>& ms,
PREDICATE predicate);
» more...
Erase all the elements in the specified set s that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class COMPARATOR,
class ALLOCATOR,
class PREDICATE>
bsl::set<KEY, COMPARATOR, ALLOCATOR>::size_type
erase_if(
set<KEY, COMPARATOR, ALLOCATOR>& s,
PREDICATE predicate);
» more...
Erase all the elements in the specified map m that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class VALUE,
class COMPARATOR,
class ALLOCATOR,
class PREDICATE>
bsl::map<KEY, VALUE, COMPARATOR, ALLOCATOR>::size_type
erase_if(
map<KEY, VALUE, COMPARATOR, ALLOCATOR>& m,
PREDICATE predicate);
» more...
Erase all the elements in the specified multimap m that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class VALUE,
class COMPARATOR,
class ALLOCATOR,
class PREDICATE>
bsl::multimap<KEY, VALUE, COMPARATOR, ALLOCATOR>::size_type
erase_if(
multimap<KEY, VALUE, COMPARATOR, ALLOCATOR>& m,
PREDICATE predicate);
» more...
Erase all the elements in the specified unordered_multiset ms that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class HASH,
class EQUAL,
class ALLOCATOR,
class PREDICATE>
bsl::unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::size_type
erase_if(
unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>& ms,
PREDICATE predicate);
» more...
Erase all the elements in the specified unordered_set s that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class HASH,
class EQUAL,
class ALLOCATOR,
class PREDICATE>
bsl::unordered_set<KEY, HASH, EQUAL, ALLOCATOR>::size_type
erase_if(
unordered_set<KEY, HASH, EQUAL, ALLOCATOR>& s,
PREDICATE predicate);
» more...
Erase all the elements in the specified unordered_map m that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class VALUE,
class HASH,
class EQUAL,
class ALLOCATOR,
class PREDICATE>
bsl::unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR>::size_type
erase_if(
unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR>& m,
PREDICATE predicate);
» more...
Erase all the elements in the specified unordered_multimap m that satisfy the specified predicate predicate. Return the number of elements erased.
template<
class KEY,
class VALUE,
class HASH,
class EQUAL,
class ALLOCATOR,
class PREDICATE>
bsl::unordered_multimap<KEY, VALUE, HASH, EQUAL, ALLOCATOR>::size_type
erase_if(
unordered_multimap<KEY, VALUE, HASH, EQUAL, ALLOCATOR>& m,
PREDICATE predicate);
» more...