I'm trying to find an element in a vector using find_if. If I had a vector<string>, I would do this:
auto it = find_if(v.begin(), v.end(), bind2nd(equal_to<string>(), name));
But I have a vector of a class C which has a member function called getName. I am trying to figure out how I create something analogous. I have already read about mem_fun_ref, but I still have no idea.