
17 Sep
2004
17 Sep
'04
10:06 a.m.
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?