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) {}
Try using find_if instead. It has a parameter for a predicate where you can decide exactly how to check wheter you found the right element.
http://www.sgi.com/tech/stl/find_if.html