silvrwood
October 7th, 2004, 03:16 PM
I have a vector<O> vec
O is comprised of:char x, linkedList myList.
myList is a list of chars.
I want to search the vector for O where x is equal to a char which I would pass.
I am trying to use find_if(vec.begin(), vec.end(), ...)
How do I write a function object to pass to find_if that will compare the x member of O to a char passed to it?
O is comprised of:char x, linkedList myList.
myList is a list of chars.
I want to search the vector for O where x is equal to a char which I would pass.
I am trying to use find_if(vec.begin(), vec.end(), ...)
How do I write a function object to pass to find_if that will compare the x member of O to a char passed to it?