Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dsubrange.h75 class subrange : public view_interface<subrange<_Iter, _Sent, _Kind>> {
91 _LIBCPP_HIDE_FROM_ABI subrange()
95 …_LIBCPP_HIDE_FROM_ABI constexpr subrange(__convertible_to_non_slicing<_Iter> auto __iter, _Sent __… in subrange() function
99 _LIBCPP_HIDE_FROM_ABI constexpr subrange( in subrange() function
108 template <__different_from<subrange> _Range>
111 _LIBCPP_HIDE_FROM_ABI constexpr subrange(_Range&& __range) in subrange() function
113 : subrange(ranges::begin(__range), ranges::end(__range)) {} in subrange()
115 template <__different_from<subrange> _Range>
118 _LIBCPP_HIDE_FROM_ABI constexpr subrange(_Range&& __range) in subrange() function
120 : 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 _LIBCPP_NODEBUG = __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.h135 …__is_sized_reverse_subrange<subrange<reverse_iterator<_Iter>, reverse_iterator<_Iter>, subrange_ki…
142 inline constexpr bool __is_unsized_reverse_subrange<subrange<reverse_iterator<_Iter>, reverse_itera…
152 struct __unwrapped_reverse_subrange<subrange<reverse_iterator<_Iter>, reverse_iterator<_Iter>, _Kin…
153 using type _LIBCPP_NODEBUG = 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 _LIBCPP_NODEBUG = subrange<_Iter, _Sent, _Kind>;
H A Dtake_view.h219 inline constexpr bool __is_passthrough_specialization<subrange<_Iter, _Sent, _Kind>> = true;
241 requires requires { typename subrange<_Iter>; }
242 struct __passthrough_type<subrange<_Iter, _Sent, _Kind>> {
243 using type _LIBCPP_NODEBUG = 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.h218 const auto [__pbegin, __pend] = ranges::subrange{__parent_->__pattern_};
299 auto [__pcur, __pend] = ranges::subrange{__i_.__parent_->__pattern_};
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_find_last.h41 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
44 return subrange<_Iter>(__first, __first); in __find_last_impl()
51 return subrange<_Iter>(std::move(__it), std::move(__last_it)); in __find_last_impl()
55 return subrange<_Iter>(std::move(__first), std::move(__last_it)); in __find_last_impl()
57 return subrange<_Iter>(__last_it, __last_it); in __find_last_impl()
69 return subrange<_Iter>(std::move(__found_it), std::move(__first)); in __find_last_impl()
71 return subrange<_Iter>(__first, __first); in __find_last_impl()
88 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter>
115 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter>
143 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter>
H A Dranges_rotate.h38 …_LIBCPP_HIDE_FROM_ABI constexpr static subrange<_Iter> __rotate_fn_impl(_Iter __first, _Iter __mid… in __rotate_fn_impl()
44 …_LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter> operator()(_Iter __first, _Iter __middle, _Sent __… in operator()
H A Dranges_partition.h46 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<__remove_cvref_t<_Iter>>
59 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_stable_partition.h47 _LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR_SINCE_CXX26 subrange<__remove_cvref_t<_Iter>>
63 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 subrange<_Iter>
H A Dranges_remove_if.h40 _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
61 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_search_n.h44 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<_Iter1> __ranges_search_n_impl( in __ranges_search_n_impl()
73 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_search.h38 _LIBCPP_HIDE_FROM_ABI static constexpr subrange<_Iter1> __ranges_search_impl( in __ranges_search_impl()
79 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter1> operator()( in operator()
H A Dranges_reverse_copy.h45 return (*this)(subrange(std::move(__first), std::move(__last)), std::move(__result)); in operator()
H A Dranges_remove.h39 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_unique.h48 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_equal_range.h47 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter>
H A Dranges_find_end.h47 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr subrange<_Iter1> operator()( in operator()
/freebsd/contrib/llvm-project/libcxx/include/__fwd/
H A Dsubrange.h31 class 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;
364 struct tuple_size<ranges::subrange<I, S, K>>
368 struct tuple_element<0, ranges::subrange<I, S, K>> {
373 struct tuple_element<1, ranges::subrange<I, S, K>> {
378 struct tuple_element<0, const ranges::subrange<I, S, K>> {
383 struct tuple_element<1, const ranges::subrange<I, S, K>> {
423 # 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