Lines Matching refs:__j
30 __nth_element_find_guard(_RandomAccessIterator& __i, _RandomAccessIterator& __j, in __nth_element_find_guard() argument
35 if (__i == --__j) { in __nth_element_find_guard()
38 if (__comp(*__j, *__m)) { in __nth_element_find_guard()
87 _RandomAccessIterator __j = __lm1; in __nth_element() local
94 if (_VSTD::__nth_element_find_guard<_Compare>(__i, __j, __m, __comp)) { in __nth_element()
95 _Ops::iter_swap(__i, __j); in __nth_element()
101 __j = __last; in __nth_element()
102 if (!__comp(*__first, *--__j)) { // we need a guard if *__first == *(__last-1) in __nth_element()
104 if (__i == __j) { in __nth_element()
107 _Ops::iter_swap(__i, __j); in __nth_element()
116 if (__i == __j) { in __nth_element()
122 while (__comp(*__first, *--__j)) in __nth_element()
124 if (__i >= __j) in __nth_element()
126 _Ops::iter_swap(__i, __j); in __nth_element()
144 if (__i < __j) in __nth_element()
153 while (!__comp(*--__j, *__m)) in __nth_element()
155 if (__i >= __j) in __nth_element()
157 _Ops::iter_swap(__i, __j); in __nth_element()
162 __m = __j; in __nth_element()
181 __j = __m = __first; in __nth_element()
183 if (++__j == __i) { in __nth_element()
187 if (__comp(*__j, *__m)) { in __nth_element()
191 __m = __j; in __nth_element()
197 __j = __m = __i; in __nth_element()
199 if (++__j == __last) { in __nth_element()
203 if (__comp(*__j, *__m)) { in __nth_element()
207 __m = __j; in __nth_element()