Home
last modified time | relevance | path

Searched refs:_Iter (Results 1 – 25 of 86) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/libcxx/include/__algorithm/
H A Diterator_operations.h49 template <class _Iter>
52 template <class _Iter>
55 template <class _Iter>
73 template <class _Iter>
76 template <class _Iter>
79 template <class _Iter>
89 template <class _Iter>
91 distance(_Iter __first, _Iter __last) {
95 template <class _Iter>
115 __move_t<_Iter>
[all …]
H A Dunwrap_range.h35 template <class _Iter, class _Sent>
38 requires random_access_iterator<_Iter> && sized_sentinel_for<_Sent, _Iter> in __unwrap()
50 requires random_access_iterator<_Iter> && sized_sentinel_for<_Sent, _Iter> in __rewrap()
55 _LIBCPP_HIDE_FROM_ABI static constexpr auto __rewrap(const _Iter&, _Iter __iter) in __rewrap()
56 requires(!(random_access_iterator<_Iter> && sized_sentinel_for<_Sent, _Iter>)) in __rewrap()
62 template <class _Iter>
63 struct __unwrap_range_impl<_Iter, _Iter> {
64 _LIBCPP_HIDE_FROM_ABI static constexpr auto __unwrap(_Iter __first, _Iter __last) {
74 template <class _Iter, class _Sent>
80 _LIBCPP_HIDE_FROM_ABI constexpr _Iter __rewrap_range(_Iter __orig_iter, _Unwrapped __iter) {
[all …]
H A Dunwrap_iter.h37 template <class _Iter, bool = __libcpp_is_contiguous_iterator<_Iter>::value>
39 …static _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iter __rewrap(_Iter, _Iter __iter) { return __iter… in __rewrap()
40 static _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iter __unwrap(_Iter __i) _NOEXCEPT { return __i; } in __unwrap()
47 template <class _Iter>
48 struct __unwrap_iter_impl<_Iter, true> {
51 …static _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR _Iter __rewrap(_Iter __orig_iter, _ToAddressT __unw…
60 template <class _Iter,
62 __enable_if_t<is_copy_constructible<_Iter>::value, int> = 0>
64 __unwrap_iter(_Iter __i) _NOEXCEPT {
70 template <class _Iter, __enable_if_t<!is_copy_constructible<_Iter>::value, int> = 0>
[all …]
H A Dranges_iterator_concept.h32 using _Iter = __remove_cvref_t<_IterMaybeQualified>; in __get_iterator_concept() local
34 if constexpr (contiguous_iterator<_Iter>) in __get_iterator_concept()
36 else if constexpr (random_access_iterator<_Iter>) in __get_iterator_concept()
38 else if constexpr (bidirectional_iterator<_Iter>) in __get_iterator_concept()
40 else if constexpr (forward_iterator<_Iter>) in __get_iterator_concept()
42 else if constexpr (input_iterator<_Iter>) in __get_iterator_concept()
46 template <class _Iter>
47 using __iterator_concept = decltype(__get_iterator_concept<_Iter>());
H A Dranges_for_each.h36 template <class _Iter, class _Func>
37 using for_each_result = in_fun_result<_Iter, _Func>;
42 template <class _Iter, class _Sent, class _Proj, class _Func>
43 _LIBCPP_HIDE_FROM_ABI constexpr static for_each_result<_Iter, _Func>
44 __for_each_impl(_Iter __first, _Sent __last, _Func& __func, _Proj& __proj) { in __for_each_impl()
51 template <input_iterator _Iter,
52 sentinel_for<_Iter> _Sent,
54 indirectly_unary_invocable<projected<_Iter, _Proj>> _Func>
55 _LIBCPP_HIDE_FROM_ABI constexpr for_each_result<_Iter, _Func>
56 operator()(_Iter __first, _Sent __last, _Func __func, _Proj __proj = {}) const { in operator()
H A Dranges_stable_partition.h48 template <class _Iter, class _Sent, class _Proj, class _Pred>
49 _LIBCPP_HIDE_FROM_ABI static subrange<__remove_cvref_t<_Iter>>
50 __stable_partition_fn_impl(_Iter&& __first, _Sent&& __last, _Pred&& __pred, _Proj&& __proj) { in __stable_partition_fn_impl()
55 std::move(__first), __last_iter, __projected_pred, __iterator_concept<_Iter>()); in __stable_partition_fn_impl()
60 template <bidirectional_iterator _Iter,
61 sentinel_for<_Iter> _Sent,
63 indirect_unary_predicate<projected<_Iter, _Proj>> _Pred>
64 requires permutable<_Iter>
65 …_LIBCPP_HIDE_FROM_ABI subrange<_Iter> operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj … in operator()
H A Dranges_partial_sort.h47 template <class _Iter, class _Sent, class _Comp, class _Proj>
48 _LIBCPP_HIDE_FROM_ABI constexpr static _Iter
49 …__partial_sort_fn_impl(_Iter __first, _Iter __middle, _Sent __last, _Comp& __comp, _Proj& __proj) { in __partial_sort_fn_impl()
54 …template <random_access_iterator _Iter, sentinel_for<_Iter> _Sent, class _Comp = ranges::less, cla…
55 requires sortable<_Iter, _Comp, _Proj>
56 _LIBCPP_HIDE_FROM_ABI constexpr _Iter
57 …operator()(_Iter __first, _Iter __middle, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) cons… in operator()
H A Dequal_range.h39 template <class _AlgPolicy, class _Compare, class _Iter, class _Sent, class _Tp, class _Proj>
40 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 pair<_Iter, _Iter>
41 __equal_range(_Iter __first, _Sent __last, const _Tp& __value, _Compare&& __comp, _Proj&& __proj) { in __equal_range()
43 _Iter __end = _IterOps<_AlgPolicy>::next(__first, __last); in __equal_range()
46 _Iter __mid = _IterOps<_AlgPolicy>::next(__first, __half_len); in __equal_range()
54 _Iter __mp1 = __mid; in __equal_range()
55 … return pair<_Iter, _Iter>(std::__lower_bound<_AlgPolicy>(__first, __mid, __value, __comp, __proj), in __equal_range()
59 return pair<_Iter, _Iter>(__first, __first); in __equal_range()
H A Dranges_rotate.h39 template <class _Iter, class _Sent>
40 …_LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter> __rotate_fn_impl(_Iter __first, _Iter __mid… in __rotate_fn_impl()
45 template <permutable _Iter, sentinel_for<_Iter> _Sent>
46 …_LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter> operator()(_Iter __first, _Iter __middle, _Sent __… in operator()
H A Dunique.h31 template <class _AlgPolicy, class _Iter, class _Sent, class _BinaryPredicate>
32 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 std::pair<_Iter, _Iter>
33 __unique(_Iter __first, _Sent __last, _BinaryPredicate&& __pred) { in __unique()
38 _Iter __i = __first; in __unique()
43 return std::pair<_Iter, _Iter>(std::move(__first), std::move(__i)); in __unique()
45 return std::pair<_Iter, _Iter>(__first, __first); in __unique()
H A Dranges_nth_element.h45 template <class _Iter, class _Sent, class _Comp, class _Proj>
46 _LIBCPP_HIDE_FROM_ABI constexpr static _Iter
47 __nth_element_fn_impl(_Iter __first, _Iter __nth, _Sent __last, _Comp& __comp, _Proj& __proj) { in __nth_element_fn_impl()
56 …template <random_access_iterator _Iter, sentinel_for<_Iter> _Sent, class _Comp = ranges::less, cla…
57 requires sortable<_Iter, _Comp, _Proj>
58 _LIBCPP_HIDE_FROM_ABI constexpr _Iter
59 operator()(_Iter __first, _Iter __nth, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { in operator()
H A Dranges_count_if.h36 template <class _Iter, class _Sent, class _Proj, class _Pred>
37 _LIBCPP_HIDE_FROM_ABI constexpr iter_difference_t<_Iter>
38 __count_if_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __count_if_impl()
39 iter_difference_t<_Iter> __counter(0); in __count_if_impl()
49 template <input_iterator _Iter,
50 sentinel_for<_Iter> _Sent,
52 indirect_unary_predicate<projected<_Iter, _Proj>> _Predicate>
53 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr iter_difference_t<_Iter>
54 operator()(_Iter __first, _Sent __last, _Predicate __pred, _Proj __proj = {}) const { in operator()
H A Dsearch_n.h33 template <class _AlgPolicy, class _Pred, class _Iter, class _Sent, class _SizeT, class _Type, class…
34 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<_Iter, _Iter> __search_n_forward_impl( in __search_n_forward_impl()
35_Iter __first, _Sent __last, _SizeT __count, const _Type& __value, _Pred& __pred, _Proj& __proj) { in __search_n_forward_impl()
50 _Iter __m = __first; in __search_n_forward_impl()
71 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 std::pair<_Iter, _Iter> __search_n_random_acces… in __search_n_random_access_impl()
72_Iter __first, _Sent __last, _SizeT __count, const _Type& __value, _Pred& __pred, _Proj& __proj, _… in __search_n_random_access_impl()
73 using difference_type = typename iterator_traits<_Iter>::difference_type; in __search_n_random_access_impl()
111 template <class _Iter, class _Sent, class _DiffT, class _Type, class _Pred, class _Proj>
112 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<_Iter, _Iter> __search_n_impl(
113 _Iter __first,
[all …]
H A Dranges_partition.h46 template <class _Iter, class _Sent, class _Proj, class _Pred>
47 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<__remove_cvref_t<_Iter>>
48 __partition_fn_impl(_Iter&& __first, _Sent&& __last, _Pred&& __pred, _Proj&& __proj) { in __partition_fn_impl()
51 std::move(__first), std::move(__last), __projected_pred, __iterator_concept<_Iter>()); in __partition_fn_impl()
56 template <permutable _Iter,
57 sentinel_for<_Iter> _Sent,
59 indirect_unary_predicate<projected<_Iter, _Proj>> _Pred>
60 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
61 operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { in operator()
H A Dranges_adjacent_find.h37 template <class _Iter, class _Sent, class _Proj, class _Pred>
38 _LIBCPP_HIDE_FROM_ABI constexpr static _Iter
39 __adjacent_find_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __adjacent_find_impl()
52 template <forward_iterator _Iter,
53 sentinel_for<_Iter> _Sent,
55 …indirect_binary_predicate<projected<_Iter, _Proj>, projected<_Iter, _Proj>> _Pred = ranges::equal_…
56 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr _Iter
57 operator()(_Iter __first, _Sent __last, _Pred __pred = {}, _Proj __proj = {}) const { in operator()
H A Dranges_remove_if.h39 template <class _Iter, class _Sent, class _Proj, class _Pred>
40 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
41 __remove_if_impl(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) { in __remove_if_impl()
46 _Iter __i = __new_end; in __remove_if_impl()
58 template <permutable _Iter,
59 sentinel_for<_Iter> _Sent,
61 indirect_unary_predicate<projected<_Iter, _Proj>> _Pred>
62 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
63 operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { in operator()
H A Dranges_replace_if.h35 template <class _Iter, class _Sent, class _Type, class _Proj, class _Pred>
36 _LIBCPP_HIDE_FROM_ABI constexpr _Iter
37 __replace_if_impl(_Iter __first, _Sent __last, _Pred& __pred, const _Type& __new_value, _Proj& __pr… in __replace_if_impl()
47 template <input_iterator _Iter,
48 sentinel_for<_Iter> _Sent,
51 indirect_unary_predicate<projected<_Iter, _Proj>> _Pred>
52 requires indirectly_writable<_Iter, const _Type&>
53 _LIBCPP_HIDE_FROM_ABI constexpr _Iter
54 …operator()(_Iter __first, _Sent __last, _Pred __pred, const _Type& __new_value, _Proj __proj = {})… in operator()
H A Dranges_inplace_merge.h45 template <class _Iter, class _Sent, class _Comp, class _Proj>
47 …__inplace_merge_impl(_Iter __first, _Iter __middle, _Sent __last, _Comp&& __comp, _Proj&& __proj) { in __inplace_merge_impl()
54 …template <bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, class _Comp = ranges::less, cla…
55 requires sortable<_Iter, _Comp, _Proj>
56 _LIBCPP_HIDE_FROM_ABI _Iter
57 …operator()(_Iter __first, _Iter __middle, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) cons… in operator()
/freebsd-14.2/contrib/llvm-project/libcxx/include/__iterator/
H A Dcommon_iterator.h44 template <class _Iter>
46 …constructible_from<iter_value_t<_Iter>, iter_reference_t<_Iter>> && move_constructible<iter_value_…
48 template <input_or_output_iterator _Iter, sentinel_for<_Iter> _Sent>
49 requires(!same_as<_Iter, _Sent> && copyable<_Iter>)
55 iter_value_t<_Iter> __value_;
60 iter_value_t<_Iter> __value_;
63 variant<_Iter, _Sent> __hold_;
126 template <class _I2 = _Iter>
134 if constexpr (is_pointer_v<_Iter> || requires(const _Iter& __i) { __i.operator->(); }) {
214 template <sized_sentinel_for<_Iter> _I2, sized_sentinel_for<_Iter> _S2>
[all …]
H A Dcounted_iterator.h47 template <class _Iter>
56 template <class _Iter>
65 template <indirectly_readable _Iter>
76 using iterator_type = _Iter;
83 _LIBCPP_HIDE_FROM_ABI constexpr counted_iterator(_Iter __iter, iter_difference_t<_Iter> __n)
200 template <common_with<_Iter> _I2>
254 requires input_iterator<_Iter>
270 _LIBCPP_NO_UNIQUE_ADDRESS _Iter __current_ = _Iter();
277 template <input_iterator _Iter>
278 requires same_as<_ITER_TRAITS<_Iter>, iterator_traits<_Iter>>
[all …]
H A Dcpp17_iterator_concepts.h70 template <class _Iter>
72 …__cpp17_copy_constructible<_Iter> && __cpp17_copy_assignable<_Iter> && __cpp17_destructible<_Iter>…
73 (is_signed_v<__iter_diff_t<_Iter>> || is_void_v<__iter_diff_t<_Iter>>)&&requires(_Iter __iter) { in requires()
78 template <class _Iter>
80 …__cpp17_iterator<_Iter> && __cpp17_equality_comparable<_Iter> && requires(_Iter __lhs, _Iter __rhs… in requires()
97 { ++__iter } -> same_as<_Iter&>; in requires()
102 template <class _Iter>
104 … __cpp17_input_iterator<_Iter> && __cpp17_default_constructible<_Iter> && requires(_Iter __iter) { in requires()
109 template <class _Iter>
116 template <class _Iter>
[all …]
H A Dreverse_iterator.h50 template <class _Iter>
73 _Iter current;
76 using iterator_type = _Iter;
131 _Iter __tmp = current;
137 requires is_pointer_v<_Iter> || requires(const _Iter __i) { __i.operator->(); }
300 template <class _Iter>
313 template <class _Iter>
320 template <class _Iter>
346 template <class _Iter>
348 _Iter __iter_;
[all …]
H A Dmove_iterator.h51 template <class _Iter>
66 template <class _Iter>
95 using pointer = _Iter;
98 typedef _Iter iterator_type;
130 requires(!_IsSame<_Up, _Iter>::value) && convertible_to<const _Up&, _Iter>
134 …requires(!_IsSame<_Up, _Iter>::value) && convertible_to<const _Up&, _Iter> && assignable_from<_Ite…
250 _Iter __current_;
316 template <class _Iter>
318 operator+(iter_difference_t<_Iter> __n, const move_iterator<_Iter>& __x)
326 template <class _Iter>
[all …]
H A Diterator_traits.h65 template <class _Iter>
77 template <class _Iter>
79 …ing type = _If< __is_primary_template<iterator_traits<_Iter> >::value, _Iter, iterator_traits<_Ite…
81 template <class _Iter>
85 template <class _Iter>
89 template <class _Iter>
93 template <class _Iter>
100 template <class _Iter>
107 template <class _Iter>
377 template <class _Iter>
[all …]
/freebsd-14.2/contrib/llvm-project/libcxx/include/__ranges/
H A Dsubrange.h71 template <input_or_output_iterator _Iter,
72 sentinel_for<_Iter> _Sent = _Iter,
86 _LIBCPP_NO_UNIQUE_ADDRESS _Iter __begin_ = _Iter();
92 requires default_initializable<_Iter>
136 requires copyable<_Iter> in begin()
142 requires(!copyable<_Iter>) in begin()
161 requires forward_iterator<_Iter>
198 template <input_or_output_iterator _Iter, sentinel_for<_Iter> _Sent>
199 subrange(_Iter, _Sent) -> subrange<_Iter, _Sent>;
201 template <input_or_output_iterator _Iter, sentinel_for<_Iter> _Sent>
[all …]

1234