/freebsd/contrib/llvm-project/libcxx/include/__algorithm/ |
H A D | nth_element.h | 39 if (__comp(*__j, *__m)) { in __nth_element_find_guard() 64 if (__comp(*--__last, *__first)) in __nth_element() 89 if (!__comp(*__i, *__m)) // if *__first == *__m in __nth_element() 104 } else if (__comp(*__first, *__i)) { in __nth_element() 118 while (!__comp(*__first, *__i)) { in __nth_element() 129 } while (__comp(*__first, *__j)); in __nth_element() 154 while (__comp(*__i, *__m)) { in __nth_element() 166 } while (!__comp(*__j, *__m)); in __nth_element() 179 if (__i != __m && __comp(*__m, *__i)) { in __nth_element() 196 if (__comp(*__j, *__m)) { in __nth_element() [all …]
|
H A D | sort.h | 112 _Comp __comp) { in __sort5() argument 116 if (__comp(*__x5, *__x4)) { in __sort5() 118 if (__comp(*__x4, *__x3)) { in __sort5() 294 if (__comp(*__i, *__j)) { 368 __comp); 449 _Compare __comp, 794 __comp); 961 __less<_Type> __comp; 967 __less<_Type> __comp; 974 __less<_Type> __comp; [all …]
|
H A D | stable_sort.h | 42 _Compare __comp) { in __insertion_sort_move() argument 55 if (__comp(*__first1, *--__i2)) { in __insertion_sort_move() 77 _Compare __comp) { in __merge_move_construct() argument 96 if (__comp(*__first2, *__first1)) { in __merge_move_construct() 115 _Compare __comp) { in __merge_move_assign() argument 124 if (__comp(*__first2, *__first1)) { in __merge_move_assign() 139 _Compare __comp, 147 _Compare __comp, in __stable_sort_move() argument 162 if (__comp(*--__last1, *__first1)) { in __stable_sort_move() 195 _Compare __comp, in __stable_sort() argument [all …]
|
H A D | partial_sort.h | 36 …andomAccessIterator __first, _RandomAccessIterator __middle, _Sentinel __last, _Compare&& __comp) { in __partial_sort_impl() argument 41 std::__make_heap<_AlgPolicy>(__first, __middle, __comp); in __partial_sort_impl() 46 if (__comp(*__i, *__first)) { in __partial_sort_impl() 48 std::__sift_down<_AlgPolicy>(__first, __comp, __len, __first); in __partial_sort_impl() 51 std::__sort_heap<_AlgPolicy>(std::move(__first), std::move(__middle), __comp); in __partial_sort_impl() 58 …RandomAccessIterator __first, _RandomAccessIterator __middle, _Sentinel __last, _Compare& __comp) { in __partial_sort() argument 65 …_sort_impl<_AlgPolicy>(__first, __middle, __last, static_cast<__comp_ref_type<_Compare> >(__comp)); in __partial_sort() 74 …sIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { in partial_sort() argument 78 …artial_sort<_ClassicAlgPolicy>(std::move(__first), std::move(__middle), std::move(__last), __comp); in partial_sort()
|
H A D | lexicographical_compare_three_way.h | 38 …__first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Cmp& __comp) 39 -> decltype(__comp(*__first1, *__first2)) { 54 auto __c = __comp(*__first1, *__first2); 68 …__first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Cmp& __comp) 69 -> decltype(__comp(*__first1, *__first2)) { 82 auto __c = __comp(*__first1, *__first2); 94 … __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Cmp __comp) 95 -> decltype(__comp(*__first1, *__first2)) { 96 static_assert(__comparison_category<decltype(__comp(*__first1, *__first2))>, 100 __three_way_comp_ref_type<_Cmp> __wrapped_comp_ref(__comp);
|
H A D | inplace_merge.h | 76 _Compare&& __comp) { in __half_inplace_merge() argument 83 if (__comp(*__first2, *__first1)) { in __half_inplace_merge() 99 _Compare&& __comp, in __buffered_inplace_merge() argument 111 std::__half_inplace_merge<_AlgPolicy>(__buff, __p, __middle, __last, __first, __comp); in __buffered_inplace_merge() 121 _Rv(__p), _Rv(__buff), _RBi(__middle), _RBi(__first), _RBi(__last), _Inverted(__comp)); in __buffered_inplace_merge() 130 _Compare&& __comp, in __inplace_merge() argument 148 if (__comp(*__middle, *__first)) in __inplace_merge() 168 __m1 = std::__upper_bound<_AlgPolicy>(__first, __middle, *__m2, __comp, std::__identity()); in __inplace_merge() 180 __m2 = std::lower_bound(__middle, __last, *__m1, __comp); in __inplace_merge() 191 …std::__inplace_merge<_AlgPolicy>(__first, __m1, __middle, __comp, __len11, __len21, __buff, __buff… in __inplace_merge() [all …]
|
H A D | sift_down.h | 30 _Compare&& __comp, in __sift_down() argument 47 if ((__child + 1) < __len && __comp(*__child_i, *(__child_i + difference_type(1)))) { in __sift_down() 54 if (__comp(*__child_i, *__start)) in __sift_down() 71 if ((__child + 1) < __len && __comp(*__child_i, *(__child_i + difference_type(1)))) { in __sift_down() 78 } while (!__comp(*__child_i, __top)); in __sift_down() 85 _Compare&& __comp, in __floyd_sift_down() argument 98 if ((__child + 1) < __len && __comp(*__child_i, *(__child_i + difference_type(1)))) { in __floyd_sift_down()
|
H A D | push_heap.h | 34 _Compare&& __comp, in __sift_up() argument 42 if (__comp(*__ptr, *--__last)) { in __sift_up() 51 } while (__comp(*__ptr, __t)); in __sift_up() 60 __push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare& __comp) { in __push_heap() argument 62 …t_up<_AlgPolicy, __comp_ref_type<_Compare> >(std::move(__first), std::move(__last), __comp, __len); in __push_heap() 67 push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { in push_heap() argument 71 std::__push_heap<_ClassicAlgPolicy>(std::move(__first), std::move(__last), __comp); in push_heap()
|
H A D | ranges_min.h | 46 _Comp __comp = {}, in operator() 48 return std::invoke(__comp, std::invoke(__proj, __b), std::invoke(__proj, __a)) ? __b : __a; 55 operator()(initializer_list<_Tp> __il, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 58 return *ranges::__min_element_impl(__il.begin(), __il.end(), __comp, __proj); 66 operator()(_Rp&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 71 return *ranges::__min_element_impl(__first, __last, __comp, __proj); 75 if (std::invoke(__comp, std::invoke(__proj, *__first), std::invoke(__proj, __result)))
|
H A D | equal_range.h | 41 __equal_range(_Iter __first, _Sent __last, const _Tp& __value, _Compare&& __comp, _Proj&& __proj) { in __equal_range() argument 47 if (std::__invoke(__comp, std::__invoke(__proj, *__mid), __value)) { in __equal_range() 50 } else if (std::__invoke(__comp, __value, std::__invoke(__proj, *__mid))) { in __equal_range() 55 … return pair<_Iter, _Iter>(std::__lower_bound<_AlgPolicy>(__first, __mid, __value, __comp, __proj), in __equal_range() 56 … std::__upper_bound<_AlgPolicy>(++__mp1, __end, __value, __comp, __proj)); in __equal_range() 64 equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value, _Compare __comp)… in equal_range() argument 71 static_cast<__comp_ref_type<_Compare> >(__comp), in equal_range()
|
H A D | ranges_lexicographical_compare.h | 42 _Comp& __comp, in __lexicographical_compare_impl() 46 …if (__first1 == __last1 || std::invoke(__comp, std::invoke(__proj1, *__first1), std::invoke(__proj… in __lexicographical_compare_impl() 48 if (std::invoke(__comp, std::invoke(__proj2, *__first2), std::invoke(__proj1, *__first1))) in __lexicographical_compare_impl() 68 _Comp __comp = {}, in operator() 72 …std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2), __comp, __proj1,… 82 …_Range1&& __range1, _Range2&& __range2, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {… in operator() 88 __comp,
|
H A D | ranges_max.h | 47 _Comp __comp = {}, in operator() 49 return std::invoke(__comp, std::invoke(__proj, __a), std::invoke(__proj, __b)) ? __b : __a; 56 operator()(initializer_list<_Tp> __il, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 60 …hs_swapped = [&](auto&& __lhs, auto&& __rhs) -> bool { return std::invoke(__comp, __rhs, __lhs); }; 69 operator()(_Rp&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 77 return std::invoke(__comp, __rhs, __lhs); 83 if (std::invoke(__comp, std::invoke(__proj, __result), std::invoke(__proj, *__first)))
|
H A D | ranges_is_heap.h | 42 __is_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __is_heap_fn_impl() 44 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __is_heap_fn_impl() 55 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 56 return __is_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 63 operator()(_Range&& __range, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 64 return __is_heap_fn_impl(ranges::begin(__range), ranges::end(__range), __comp, __proj);
|
H A D | ranges_is_heap_until.h | 43 __is_heap_until_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __is_heap_until_fn_impl() 45 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __is_heap_until_fn_impl() 55 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 56 return __is_heap_until_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 63 operator()(_Range&& __range, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 64 return __is_heap_until_fn_impl(ranges::begin(__range), ranges::end(__range), __comp, __proj);
|
H A D | ranges_min_element.h | 38 _LIBCPP_HIDE_FROM_ABI constexpr _Ip __min_element_impl(_Ip __first, _Sp __last, _Comp& __comp, _Pro… in __min_element_impl() argument 44 if (std::invoke(__comp, std::invoke(__proj, *__i), std::invoke(__proj, *__first))) in __min_element_impl() 56 operator()(_Ip __first, _Sp __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 57 return ranges::__min_element_impl(__first, __last, __comp, __proj); 64 operator()(_Rp&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 65 return ranges::__min_element_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
H A D | ranges_stable_sort.h | 46 …ABI static _Iter __stable_sort_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __stable_sort_fn_impl() 49 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __stable_sort_fn_impl() 57 …_LIBCPP_HIDE_FROM_ABI _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __pro… in operator() 58 return __stable_sort_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 64 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 65 return __stable_sort_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
H A D | ranges_binary_search.h | 43 …operator()(_Iter __first, _Sent __last, const _Type& __value, _Comp __comp = {}, _Proj __proj = {}… in operator() 44 auto __ret = std::__lower_bound<_RangeAlgPolicy>(__first, __last, __value, __comp, __proj); 45 return __ret != __last && !std::invoke(__comp, __value, std::invoke(__proj, *__ret)); 53 operator()(_Range&& __r, const _Type& __value, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 56 auto __ret = std::__lower_bound<_RangeAlgPolicy>(__first, __last, __value, __comp, __proj); 57 return __ret != __last && !std::invoke(__comp, __value, std::invoke(__proj, *__ret));
|
H A D | min_element.h | 32 __min_element(_Iter __first, _Sent __last, _Comp __comp, _Proj& __proj) { in __min_element() argument 38 if (std::__invoke(__comp, std::__invoke(__proj, *__i), std::__invoke(__proj, *__first))) in __min_element() 45 …_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Iter __min_element(_Iter __first, _Sent __last, _Comp __comp) { in __min_element() argument 47 return std::__min_element<_Comp>(std::move(__first), std::move(__last), __comp, __proj); in __min_element() 52 min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { in min_element() argument 58 …turn std::__min_element<__comp_ref_type<_Compare> >(std::move(__first), std::move(__last), __comp); in min_element()
|
H A D | ranges_is_sorted_until.h | 38 __is_sorted_until_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __is_sorted_until_impl() argument 43 if (std::invoke(__comp, std::invoke(__proj, *__i), std::invoke(__proj, *__first))) in __is_sorted_until_impl() 57 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 58 return ranges::__is_sorted_until_impl(std::move(__first), std::move(__last), __comp, __proj); 65 operator()(_Range&& __range, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 66 …return ranges::__is_sorted_until_impl(ranges::begin(__range), ranges::end(__range), __comp, __proj…
|
H A D | ranges_make_heap.h | 48 __make_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __make_heap_fn_impl() 51 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __make_heap_fn_impl() 60 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 61 return __make_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 67 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 68 return __make_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
H A D | ranges_pop_heap.h | 48 __pop_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __pop_heap_fn_impl() 52 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __pop_heap_fn_impl() 61 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 62 return __pop_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 68 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 69 return __pop_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
H A D | ranges_push_heap.h | 48 __push_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __push_heap_fn_impl() 51 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __push_heap_fn_impl() 60 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 61 return __push_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 67 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 68 return __push_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
H A D | ranges_sort.h | 47 __sort_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __sort_fn_impl() 50 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __sort_fn_impl() 59 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 60 return __sort_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 66 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 67 return __sort_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
H A D | ranges_sort_heap.h | 48 __sort_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { in __sort_heap_fn_impl() 51 auto&& __projected_comp = std::__make_projected(__comp, __proj); in __sort_heap_fn_impl() 60 operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 61 return __sort_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj); 67 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator() 68 return __sort_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
|
/freebsd/contrib/llvm-project/libcxx/include/__debug_utils/ |
H A D | strict_weak_ordering_check.h | 28 …_weak_ordering_sorted(_RandomAccessIterator __first, _RandomAccessIterator __last, _Comp& __comp) { in __check_strict_weak_ordering_sorted() argument 35 (std::is_sorted<_RandomAccessIterator, _Comp_ref>(__first, __last, _Comp_ref(__comp))), in __check_strict_weak_ordering_sorted() 43 while (__q < __size && !__comp(*(__first + __p), *(__first + __q))) { in __check_strict_weak_ordering_sorted() 50 …!__comp(*(__first + __a), *(__first + __b)), "Your comparator is not a valid strict-weak ordering"… in __check_strict_weak_ordering_sorted() 52 …!__comp(*(__first + __b), *(__first + __a)), "Your comparator is not a valid strict-weak ordering"… in __check_strict_weak_ordering_sorted() 59 …__comp(*(__first + __a), *(__first + __b)), "Your comparator is not a valid strict-weak ordering"); in __check_strict_weak_ordering_sorted() 61 …!__comp(*(__first + __b), *(__first + __a)), "Your comparator is not a valid strict-weak ordering"… in __check_strict_weak_ordering_sorted() 71 (void)__comp; in __check_strict_weak_ordering_sorted()
|