vector<int>::iterator p; p = remove_copy_if(a.begin(), a.end(), b.begin(), DivisibleBy(2)); b.erase(p,b.end());
b 1 3 5