22 Containers library [containers]

22.3 Sequence containers [sequences]

22.3.10 Class template list [list]

22.3.10.6 Erasure [list.erasure]

template<class T, class Allocator, class U> void erase(list<T, Allocator>& c, const U& value);
Effects: Equivalent to: erase_­if(c, [&](auto& elem) return elem == value; );
template<class T, class Allocator, class Predicate> void erase_if(list<T, Allocator>& c, Predicate pred);
Effects: Equivalent to: c.remove_­if(pred);