Home
last modified time | relevance | path

Searched refs:__proj (Results 1 – 25 of 75) sorted by relevance

123

/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_find_last.h41 __find_last_impl(_Iter __first, _Sent __last, _Pred __pred, _Proj& __proj) { in __find_last_impl() argument
49 if (__pred(std::invoke(__proj, *__it))) { in __find_last_impl()
53 if (__pred(std::invoke(__proj, *__first))) { in __find_last_impl()
61 if (__pred(std::invoke(__proj, *__first))) { in __find_last_impl()
89 operator()(_Iter __first, _Sent __last, const _Type& __value, _Proj __proj = {}) { in operator()
90 …turn ranges::__find_last_impl(std::move(__first), std::move(__last), __op<_Type>{__value}, __proj);
96 operator()(_Range&& __range, const _Type& __value, _Proj __proj = {}) { in operator()
97 …nges::__find_last_impl(ranges::begin(__range), ranges::end(__range), __op<_Type>{__value}, __proj);
118 operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) { in operator()
119 …eturn ranges::__find_last_impl(std::move(__first), std::move(__last), __op<_Pred>{__pred}, __proj);
[all …]
H A Dranges_min.h47 _Proj __proj = {}) const {
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 Dranges_max.h48 _Proj __proj = {}) const {
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()
61 return *ranges::__min_element_impl(__il.begin(), __il.end(), __comp_lhs_rhs_swapped, __proj);
69 operator()(_Rp&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator()
79 …*ranges::__min_element_impl(std::move(__first), std::move(__last), __comp_lhs_rhs_swapped, __proj);
83 if (std::invoke(__comp, std::invoke(__proj, __result), std::invoke(__proj, *__first)))
H A Dsearch_n.h35 … _Iter __first, _Sent __last, _SizeT __count, const _Type& __value, _Pred& __pred, _Proj& __proj) { in __search_n_forward_impl() argument
45 if (std::__invoke(__pred, std::__invoke(__proj, *__first), __value)) in __search_n_forward_impl()
61 if (!std::__invoke(__pred, std::__invoke(__proj, *__m), __value)) { in __search_n_forward_impl()
72 …_Iter __first, _Sent __last, _SizeT __count, const _Type& __value, _Pred& __pred, _Proj& __proj, _… in __search_n_random_access_impl() argument
89 if (std::__invoke(__pred, std::__invoke(__proj, *__first), __value)) in __search_n_random_access_impl()
102 if (!std::__invoke(__pred, std::__invoke(__proj, *__m), __value)) { in __search_n_random_access_impl()
119 …(_Iter __first, _Sent __last, _DiffT __count, const _Type& __value, _Pred& __pred, _Proj& __proj) { in __search_n_impl() argument
121 __first, __last, __count, __value, __pred, __proj, __last - __first); in __search_n_impl()
134 …Iter1 __first, _Sent1 __last, _DiffT __count, const _Type& __value, _Pred& __pred, _Proj& __proj) { in __search_n_impl() argument
135 …std::__search_n_forward_impl<_ClassicAlgPolicy>(__first, __last, __count, __value, __pred, __proj); in __search_n_impl()
[all …]
H A Dlower_bound.h36 _Proj& __proj) { in __lower_bound_bisecting() argument
41 if (std::__invoke(__comp, std::__invoke(__proj, *__m), __value)) { in __lower_bound_bisecting()
62 …sided(_ForwardIterator __first, _Sent __last, const _Type& __value, _Comp& __comp, _Proj& __proj) { in __lower_bound_onesided() argument
64 if (__first == __last || !std::__invoke(__comp, std::__invoke(__proj, *__first), __value)) in __lower_bound_onesided()
73 if (__it == __last || !std::__invoke(__comp, std::__invoke(__proj, *__it), __value)) { in __lower_bound_onesided()
78 return std::__lower_bound_bisecting<_AlgPolicy>(__first, __value, __dist, __comp, __proj); in __lower_bound_onesided()
88 …bound(_ForwardIterator __first, _Sent __last, const _Type& __value, _Comp& __comp, _Proj& __proj) { in __lower_bound() argument
90 return std::__lower_bound_bisecting<_AlgPolicy>(__first, __value, __dist, __comp, __proj); in __lower_bound()
97 auto __proj = std::__identity(); in lower_bound() local
98 return std::__lower_bound<_ClassicAlgPolicy>(__first, __last, __value, __comp, __proj); in lower_bound()
H A Dranges_is_partitioned.h38 __is_partitioned_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __is_partitioned_impl()
40 if (!std::invoke(__pred, std::invoke(__proj, *__first))) in __is_partitioned_impl()
49 if (std::invoke(__pred, std::invoke(__proj, *__first))) in __is_partitioned_impl()
61 operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { in operator()
62 return __is_partitioned_impl(std::move(__first), std::move(__last), __pred, __proj);
69 operator()(_Range&& __range, _Pred __pred, _Proj __proj = {}) const { in operator()
70 return __is_partitioned_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
H A Dranges_min_element.h38 …_FROM_ABI constexpr _Ip __min_element_impl(_Ip __first, _Sp __last, _Comp& __comp, _Proj& __proj) { 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 Dranges_is_sorted_until.h38 __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 …eturn ranges::__is_sorted_until_impl(ranges::begin(__range), ranges::end(__range), __comp, __proj);
H A Dranges_remove_if.h41 __remove_if_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __remove_if_impl() argument
42 auto __new_end = ranges::__find_if_impl(__first, __last, __pred, __proj); in __remove_if_impl()
48 if (!std::invoke(__pred, std::invoke(__proj, *__i))) { in __remove_if_impl()
63 operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { in operator()
64 return ranges::__remove_if_impl(std::move(__first), std::move(__last), __pred, __proj);
72 operator()(_Range&& __range, _Pred __pred, _Proj __proj = {}) const { in operator()
73 return ranges::__remove_if_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
H A Dranges_adjacent_find.h39 __adjacent_find_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __adjacent_find_impl()
45 if (std::invoke(__pred, std::invoke(__proj, *__first), std::invoke(__proj, *__i))) in __adjacent_find_impl()
57 operator()(_Iter __first, _Sent __last, _Pred __pred = {}, _Proj __proj = {}) const { in operator()
58 return __adjacent_find_impl(std::move(__first), std::move(__last), __pred, __proj);
66 operator()(_Range&& __range, _Pred __pred = {}, _Proj __proj = {}) const { in operator()
67 return __adjacent_find_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
H A Dranges_clamp.h39 …pe& __value, const _Type& __low, const _Type& __high, _Comp __comp = {}, _Proj __proj = {}) const { in operator()
41 !bool(std::invoke(__comp, std::invoke(__proj, __high), std::invoke(__proj, __low))),
44 auto&& __projected = std::invoke(__proj, __value);
45 …if (std::invoke(__comp, std::forward<decltype(__projected)>(__projected), std::invoke(__proj, __lo…
47 …else if (std::invoke(__comp, std::invoke(__proj, __high), std::forward<decltype(__projected)>(__pr…
H A Dranges_find.h43 __find_unwrap(_Iter __first, _Sent __last, const _Tp& __value, _Proj& __proj) { in __find_unwrap()
47 … std::move(__first), std::__find(std::move(__first_un), std::move(__last_un), __value, __proj)); in __find_unwrap()
49 return std::__find(std::move(__first), std::move(__last), __value, __proj); in __find_unwrap()
56 operator()(_Ip __first, _Sp __last, const _Tp& __value, _Proj __proj = {}) const { in operator()
57 return __find_unwrap(std::move(__first), std::move(__last), __value, __proj);
63 operator()(_Rp&& __r, const _Tp& __value, _Proj __proj = {}) const { in operator()
64 return __find_unwrap(ranges::begin(__r), ranges::end(__r), __value, __proj);
H A Dranges_any_of.h36 …BI constexpr static bool __any_of_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __any_of_impl()
38 if (std::invoke(__pred, std::invoke(__proj, *__first))) in __any_of_impl()
49 operator()(_Iter __first, _Sent __last, _Pred __pred = {}, _Proj __proj = {}) const { in operator()
50 return __any_of_impl(std::move(__first), std::move(__last), __pred, __proj);
57 operator()(_Range&& __range, _Pred __pred, _Proj __proj = {}) const { in operator()
58 return __any_of_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
H A Dranges_all_of.h36 …BI constexpr static bool __all_of_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __all_of_impl()
38 if (!std::invoke(__pred, std::invoke(__proj, *__first))) in __all_of_impl()
49 operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { in operator()
50 return __all_of_impl(std::move(__first), std::move(__last), __pred, __proj);
57 operator()(_Range&& __range, _Pred __pred, _Proj __proj = {}) const { in operator()
58 return __all_of_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
H A Dranges_none_of.h37 __none_of_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __none_of_impl()
39 if (std::invoke(__pred, std::invoke(__proj, *__first))) in __none_of_impl()
50 operator()(_Iter __first, _Sent __last, _Pred __pred = {}, _Proj __proj = {}) const { in operator()
51 return __none_of_impl(std::move(__first), std::move(__last), __pred, __proj);
58 operator()(_Range&& __range, _Pred __pred, _Proj __proj = {}) const { in operator()
59 return __none_of_impl(ranges::begin(__range), ranges::end(__range), __pred, __proj);
H A Dranges_minmax.h59 _Proj __proj = {}) const {
60 if (std::invoke(__comp, std::invoke(__proj, __b), std::invoke(__proj, __a)))
69 operator()(initializer_list<_Type> __il, _Comp __comp = {}, _Proj __proj = {}) const { in operator()
72 auto __iters = std::__minmax_element_impl(__il.begin(), __il.end(), __comp, __proj);
81 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { in operator()
114 auto __result = std::__minmax_element_impl(__first, __last, __comp, __proj);
121 std::invoke(__proj, std::forward<decltype(__a)>(__a)),
122 std::invoke(__proj, std::forward<decltype(__b)>(__b)));
H A Dranges_find_if.h37 …HIDE_FROM_ABI constexpr _Ip __find_if_impl(_Ip __first, _Sp __last, _Pred& __pred, _Proj& __proj) { in __find_if_impl() argument
39 if (std::invoke(__pred, std::invoke(__proj, *__first))) in __find_if_impl()
52 operator()(_Ip __first, _Sp __last, _Pred __pred, _Proj __proj = {}) const { in operator()
53 return ranges::__find_if_impl(std::move(__first), std::move(__last), __pred, __proj);
58 operator()(_Rp&& __r, _Pred __pred, _Proj __proj = {}) const { in operator()
59 return ranges::__find_if_impl(ranges::begin(__r), ranges::end(__r), __pred, __proj);
H A Dranges_make_heap.h48 __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 {
61 return __make_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj);
67 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const {
68 return __make_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
H A Dranges_push_heap.h48 __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 {
61 return __push_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj);
67 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const {
68 return __push_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
H A Dranges_sort.h47 __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 {
60 return __sort_fn_impl(std::move(__first), std::move(__last), __comp, __proj);
66 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const {
67 return __sort_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
H A Dranges_sort_heap.h48 __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 {
61 return __sort_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj);
67 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const {
68 return __sort_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
H A Dranges_stable_sort.h46 _LIBCPP_HIDE_FROM_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 __proj = {}) const {
58 return __stable_sort_fn_impl(std::move(__first), std::move(__last), __comp, __proj);
64 operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const {
65 return __stable_sort_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);
H A Dranges_count_if.h38 __count_if_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __count_if_impl() argument
41 if (std::invoke(__pred, std::invoke(__proj, *__first))) in __count_if_impl()
54 operator()(_Iter __first, _Sent __last, _Predicate __pred, _Proj __proj = {}) const { in operator()
55 return ranges::__count_if_impl(std::move(__first), std::move(__last), __pred, __proj);
62 operator()(_Range&& __r, _Predicate __pred, _Proj __proj = {}) const { in operator()
63 return ranges::__count_if_impl(ranges::begin(__r), ranges::end(__r), __pred, __proj);
H A Dranges_is_heap.h42 __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 Dranges_is_heap_until.h43 __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);

123