Annex D (normative) Compatibility features [depr]

D.9 Binders [depr.lib.binders]

D.9.4 bind2nd [depr.lib.bind.2nd]

template <class Fn, class T> binder2nd<Fn> bind2nd(const Fn& op, const T& x);

Returns: binder2nd<Fn>(op, typename Fn::second_argument_type(x)).


find_if(v.begin(), v.end(), bind2nd(greater<int>(), 5));

finds the first integer in vector v greater than 5;

find_if(v.begin(), v.end(), bind1st(greater<int>(), 5));

finds the first integer in v less than 5.  — end example ]