less
Description
ExampleFinds the first negative element in a list. List<int> L; ... List<int>::iterator first_negative = find_if(L.begin(), L.end(), bind2nd(less<int>(), 0)); assert(first_negative == L.end() || *first_negative < 0); DefinitionDefined in the standard header functional, and in the nonstandard backward-compatibility header function.h. Template parameters
Model ofAdaptableBinaryPredicate, DefaultConstructible Type requirements
Public base classes
Members
New membersAll of NotesSee alsoThe functors, StrictWeakOrdering, AdaptableBinaryPredicate, LessThanComparable, |