I have std::list<MyClass> *info1
I want to use (*info1).remove_if
with a bool function of MyClass. As I see, everyone creating external functions or structs for remove_if. Isn't it possible to use it with bool MyClass::Condition()
function?
Like this:
class MyClass
{
private:
int value;
public:
bool Condition()
{
return ( value > 7500);
}
};
And Then
(*info1).remove_if(Condition())`