
13 May
2003
13 May
'03
4:31 p.m.
I have an object that has a member get_name which returns a string. I have a collection of these objects and would like to find one with a particular name. I am currently using find_if, equal and bind find_if(objects.begin(), objects.end(), bind(equal_to<string>(), name, bind(&object::get_name, _1))); Given Lambda doesn't compile under BCB6, is there an easier way to do this rather than having to make up 2 bind statements? Thanks Russell