bool operator()(Person const person) const { // Remove people with name length < 4 std::string name = person.GetName(); if (name.length() < 4) return true; // Remove people with less then 18 years old if (person.GetAge() < 18) return true; return false; }