erase overloads
Declared in <bslstl_deque.h>
Erase every element of deq that compares equal to value.
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 elements in l that compare equal to value.
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 all occurrences of a character from a string.
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...
| Name | Description |
|---|---|
| deq | deque from which matching elements are erased |
| value | value compared for equality with each element |
| l | list from which to erase elements |
| vec | vector to modify |
| str | string to modify |
| c | character value to erase |