From: Vukasin Toroman (vtoroman_at_[hidden])
Date: 2004-09-17 05:06:24
On Thursday 16 September 2004 22:34, Michael Rutman wrote:
> Here is the case where I need it.
> I have a vector<Foo> myFoo.
> In a method of Foo I need to see if this instance is in the vector. I want
> to do this
> vector<Foo>::iterator iter = find( myFoo.begin(), myFoo.end(), this );
wouldn't it be better to simply specify a compare functor for your container?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk