I want to find in a vector of Object pointers for a matching object. Here\'s a sample code to illustrate my problem:
class A { public: A(string a):_a(a) {}
You could also use Boost::Lambda:
using namespace boost::lambda; find_if(va.begin(), va.end(), *_1 == A("two"));
Of course, you should prefer to use shared_ptrs so you don't have to remember to delete!