Lines Matching defs:__first
26 __max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) {
29 if (__first != __last) {
30 _ForwardIterator __i = __first;
32 if (__comp(*__first, *__i))
33 __first = __i;
35 return __first;
40 max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) {
42 __is_callable<_Compare&, decltype(*__first), decltype(*__first)>::value, "The comparator has to be callable");
43 return std::__max_element<__comp_ref_type<_Compare> >(__first, __last, __comp);
48 max_element(_ForwardIterator __first, _ForwardIterator __last) {
49 return std::max_element(__first, __last, __less<>());