erase_if code c++ code example
Example: c++ erase(remove_if)
class Anything{
public: int func() };
list<Anything> lst = <some_elements>;
//removes every element in list that returned true in line 9
lst.erase(std::remove_if(lst.begin(), lst.end(),
[&](const Anything lst)-> bool
{ return lst.func() == something; }), //any condition
lst.end());