Home
last modified time | relevance | path

Searched refs:subrange (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dsubrange.h74 class _LIBCPP_TEMPLATE_VIS subrange : public view_interface<subrange<_Iter, _Sent, _Kind>> {
90 _LIBCPP_HIDE_FROM_ABI subrange()
94 …_LIBCPP_HIDE_FROM_ABI constexpr subrange(__convertible_to_non_slicing<_Iter> auto __iter, _Sent __… in subrange() function
98 _LIBCPP_HIDE_FROM_ABI constexpr subrange( in subrange() function
107 template <__different_from<subrange> _Range>
110 _LIBCPP_HIDE_FROM_ABI constexpr subrange(_Range&& __range) in subrange() function
112 : subrange(ranges::begin(__range), ranges::end(__range)) {} in subrange()
114 template <__different_from<subrange> _Range>
117 _LIBCPP_HIDE_FROM_ABI constexpr subrange(_Range&& __range) in subrange() function
119 : subrange(__range, ranges::size(__range)) {} in subrange()
[all …]
H A Dcounted.h55 noexcept(subrange(__it, __it + __count))) -> decltype(subrange(__it, __it + __count)) {
56 return subrange(__it, __it + __count);
61 noexcept(subrange(counted_iterator(std::move(__it), __count), default_sentinel)))
62 -> decltype(subrange(counted_iterator(std::move(__it), __count), default_sentinel)) {
63 return subrange(counted_iterator(std::move(__it), __count), default_sentinel);
H A Dsplit_view.h55 …using _Cache = __non_propagating_cache<subrange<iterator_t<_View>…
67 _LIBCPP_HIDE_FROM_ABI constexpr subrange<iterator_t<_View>> __find_next(iterator_t<_View> __it) { in __find_next()
68 auto [__begin, __end] = ranges::search(subrange(__it, ranges::end(__base_)), __pattern_); in __find_next()
128 _LIBCPP_NO_UNIQUE_ADDRESS subrange<iterator_t<_View>> __next_ = subrange<iterator_t<_View>>();
136 using value_type = subrange<iterator_t<_View>>;
142 …split_view<_View, _Pattern>& __parent, iterator_t<_View> __current, subrange<iterator_t<_View>> __…
H A Dreverse_view.h134 …__is_sized_reverse_subrange<subrange<reverse_iterator<_Iter>, reverse_iterator<_Iter>, subrange_ki…
141 inline constexpr bool __is_unsized_reverse_subrange<subrange<reverse_iterator<_Iter>, reverse_itera…
151 struct __unwrapped_reverse_subrange<subrange<reverse_iterator<_Iter>, reverse_iterator<_Iter>, _Kin…
152 using type = subrange<_Iter, _Iter, _Kind>;
H A Ddrop_view.h173 inline constexpr bool __is_passthrough_specialization<subrange<_Iter, _Sent, _Kind>> =
174 !subrange<_Iter, _Sent, _Kind>::_StoreSize;
180 inline constexpr bool __is_subrange_specialization_with_store_size<subrange<_Iter, _Sent, _Kind>> =
181 subrange<_Iter, _Sent, _Kind>::_StoreSize;
202 struct __passthrough_type<subrange<_Iter, _Sent, _Kind>> {
203 using type = subrange<_Iter, _Sent, _Kind>;
H A Dtake_view.h220 inline constexpr bool __is_passthrough_specialization<subrange<_Iter, _Sent, _Kind>> = true;
242 requires requires { typename subrange<_Iter>; }
243 struct __passthrough_type<subrange<_Iter, _Sent, _Kind>> {
244 using type = subrange<_Iter>;
H A Dchunk_by_view.h88 reverse_view __reversed{subrange{__first, __current}}; in __find_prev()
151 using value_type = subrange<iterator_t<_View>>;
H A Dlazy_split_view.h217 const auto [__pbegin, __pend] = ranges::subrange{__parent_->__pattern_};
298 auto [__pcur, __pend] = ranges::subrange{__i_.__parent_->__pattern_};
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_find_last.h40 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
43 return subrange<_Iter>(__first, __first); in __find_last_impl()
50 return subrange<_Iter>(std::move(__it), std::move(__last_it)); in __find_last_impl()
54 return subrange<_Iter>(std::move(__first), std::move(__last_it)); in __find_last_impl()
56 return subrange<_Iter>(__last_it, __last_it); in __find_last_impl()
68 return subrange<_Iter>(std::move(__found_it), std::move(__first)); in __find_last_impl()
70 return subrange<_Iter>(__first, __first); in __find_last_impl()
88 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter>
117 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter>
147 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter>
H A Dranges_rotate.h21 #include <__ranges/subrange.h>
40 _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter> __rotate_fn_impl(_Iter __first, _Iter __middle, _Sent __last) { in __rotate_fn_impl()
46 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter> operator()(_Iter __first, _Iter __middle, _Sent __last) const {
H A Dranges_partition.h26 #include <__ranges/subrange.h>
47 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<__remove_cvref_t<_Iter>> in __partition_fn_impl()
60 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_stable_partition.h28 #include <__ranges/subrange.h>
49 _LIBCPP_HIDE_FROM_ABI static subrange<__remove_cvref_t<_Iter>> in __stable_partition_fn_impl()
65 _LIBCPP_HIDE_FROM_ABI subrange<_Iter> operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const {
H A Dranges_remove_if.h40 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
62 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_search_n.h45 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<_Iter1> __ranges_search_n_impl( in __ranges_search_n_impl()
74 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_search.h39 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<_Iter1> __ranges_search_impl( in __ranges_search_impl()
80 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter1> operator()( in operator()
H A Dranges_reverse_copy.h21 #include <__ranges/subrange.h>
46 return (*this)(subrange(std::move(__first), std::move(__last)), std::move(__result));
H A Dranges_remove.h40 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_unique.h50 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_equal_range.h49 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_find_end.h48 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter1> operator()( in operator()
/freebsd/contrib/llvm-project/libcxx/include/__fwd/
H A Dsubrange.h31 class _LIBCPP_TEMPLATE_VIS subrange;
35 _LIBCPP_HIDE_FROM_ABI constexpr auto get(const subrange<_Iter, _Sent, _Kind>&);
39 _LIBCPP_HIDE_FROM_ABI constexpr auto get(subrange<_Iter, _Sent, _Kind>&&);
/freebsd/contrib/llvm-project/libcxx/include/
H A Dranges106 // [range.subrange], sub-ranges
111 class subrange;
114 inline constexpr bool enable_borrowed_range<subrange<I, S, K>> = true;
355 struct tuple_size<ranges::subrange<I, S, K>>
359 struct tuple_element<0, ranges::subrange<I, S, K>> {
364 struct tuple_element<1, ranges::subrange<I, S, K>> {
369 struct tuple_element<0, const ranges::subrange<I, S, K>> {
374 struct tuple_element<1, const ranges::subrange<I, S, K>> {
411 # include <__ranges/subrange.h>
/freebsd/contrib/llvm-project/libcxx/include/__tuple/
H A Dtuple_like.h30 inline constexpr bool __is_ranges_subrange_v<ranges::subrange<_Iter, _Sent, _Kind>> = true;
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dranges.cppm
H A Dranges.inc72 // [range.subrange], sub-ranges
73 using std::ranges::subrange;

12