Erase all elements in l that compare equal to value.
Declared in <bslstl_list.h>
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);
Return the number of elements erased.
number of elements erased
| Name | Description |
|---|---|
| l | list from which to erase elements |
| value | value of elements to erase |