9 Mar
2011
9 Mar
'11
9:33 p.m.
I don't want to find elements equal to a specific element. I want to find an element that meets specific criteria -- that is, find the element for which two of its data members have specific values. If I already had all the criteria for the element, I wouldn't need to find it in the first place!
I see... You can do something like this: std::find_if(FOverridesContainer.begin(), FOverridesContainer.end(), boost::bind(OverrideMatches(), _1, ChildItemRecNo, LinkItemRecNo)); or with Boost.Range algorithm: boost::find_if(FOverridesContainer, boost::bind(OverrideMatches(), _1, ChildItemRecNo, LinkItemRecNo));