22 Containers library [containers]

22.3 Sequence containers [sequences]

22.3.9 Class template forward_­list [forwardlist]

22.3.9.7 Erasure [forward.list.erasure]

template<class T, class Allocator, class U> void erase(forward_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(forward_list<T, Allocator>& c, Predicate pred);
Effects: Equivalent to: c.remove_­if(pred);