Lines Matching refs:__first
46 __nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __l… in __nth_element() argument
57 difference_type __len = __last - __first; in __nth_element()
64 if (__comp(*--__last, *__first)) in __nth_element()
65 _Ops::iter_swap(__first, __last); in __nth_element()
69 _RandomAccessIterator __m = __first; in __nth_element()
70 std::__sort3<_AlgPolicy, _Compare>(__first, ++__m, --__last, __comp); in __nth_element()
76 std::__selection_sort<_AlgPolicy, _Compare>(__first, __last, __comp); in __nth_element()
80 _RandomAccessIterator __m = __first + __len/2; in __nth_element()
82 unsigned __n_swaps = std::__sort3<_AlgPolicy, _Compare>(__first, __m, --__lm1, __comp); in __nth_element()
86 _RandomAccessIterator __i = __first; in __nth_element()
102 if (!__comp(*__first, *--__j)) { // we need a guard if *__first == *(__last-1) in __nth_element()
106 } else if (__comp(*__first, *__i)) { in __nth_element()
120 while (!__comp(*__first, *__i)) in __nth_element()
122 while (__comp(*__first, *--__j)) in __nth_element()
137 __first = __i; in __nth_element()
181 __j = __m = __first; in __nth_element()
220 __first = ++__i; in __nth_element()
227 void __nth_element_impl(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIt… in __nth_element_impl() argument
232 std::__debug_randomize_range<_AlgPolicy>(__first, __last); in __nth_element_impl()
235 std::__nth_element<_AlgPolicy, _Comp_ref>(__first, __nth, __last, __comp); in __nth_element_impl()
237 std::__debug_randomize_range<_AlgPolicy>(__first, __nth); in __nth_element_impl()
245 void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator … in nth_element() argument
247 …std::__nth_element_impl<_ClassicAlgPolicy>(std::move(__first), std::move(__nth), std::move(__last)… in nth_element()
252 void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator … in nth_element() argument
253 std::nth_element(std::move(__first), std::move(__nth), std::move(__last), __less<typename in nth_element()