Home
last modified time | relevance | path

Searched refs:__base_ (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Daliasing_iterator.h32 _BaseIter __base_ = nullptr; member
51 _LIBCPP_HIDE_FROM_ABI __iterator(_BaseIter __base) _NOEXCEPT : __base_(__base) {} in __iterator()
54 ++__base_;
60 ++__base_;
65 --__base_;
71 --__base_;
76 return __iterator(__iter.__base_ + __n);
80 return __iterator(__n + __iter.__base_);
84 __base_ += __n;
89 return __iterator(__iter.__base_ - __n);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dcommon_view.h44 _View __base_ = _View(); variable
51 _LIBCPP_HIDE_FROM_ABI constexpr explicit common_view(_View __v) : __base_(std::move(__v)) {} in common_view()
56 return __base_; in base()
59 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
63 return ranges::begin(__base_); in begin()
65 return common_iterator<iterator_t<_View>, sentinel_t<_View>>(ranges::begin(__base_)); in begin()
72 return ranges::begin(__base_); in begin()
74 … return common_iterator<iterator_t<const _View>, sentinel_t<const _View>>(ranges::begin(__base_)); in begin()
79 return ranges::begin(__base_) + ranges::size(__base_); in end()
81 return common_iterator<iterator_t<_View>, sentinel_t<_View>>(ranges::end(__base_)); in end()
[all …]
H A Das_rvalue_view.h42 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); variable
49 …_LIBCPP_HIDE_FROM_ABI constexpr explicit as_rvalue_view(_View __base) : __base_(std::move(__base))… in as_rvalue_view()
54 return __base_; in base()
57 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
62 return move_iterator(ranges::begin(__base_)); in begin()
68 return move_iterator(ranges::begin(__base_)); in begin()
75 return move_iterator(ranges::end(__base_)); in end()
77 return move_sentinel(ranges::end(__base_)); in end()
85 return move_iterator(ranges::end(__base_)); in end()
87 return move_sentinel(ranges::end(__base_)); in end()
[all …]
H A Dreverse_view.h52 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); variable
59 …_LIBCPP_HIDE_FROM_ABI constexpr explicit reverse_view(_View __view) : __base_(std::move(__view)) {} in reverse_view()
64 return __base_; in base()
67 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
74 …uto __tmp = std::make_reverse_iterator(ranges::next(ranges::begin(__base_), ranges::end(__base_))); in begin()
83 return std::make_reverse_iterator(ranges::end(__base_)); in begin()
89 return std::make_reverse_iterator(ranges::end(__base_)); in begin()
93 return std::make_reverse_iterator(ranges::begin(__base_)); in end()
99 return std::make_reverse_iterator(ranges::begin(__base_)); in end()
105 return ranges::size(__base_); in size()
[all …]
H A Dsplit_view.h53 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();
68 auto [__begin, __end] = ranges::search(subrange(__it, ranges::end(__base_)), __pattern_); in __find_next()
69 if (__begin != ranges::end(__base_) && ranges::empty(__pattern_)) { in __find_next()
82 : __base_(std::move(__base)), __pattern_(std::move((__pattern))) {} in split_view()
89 …: __base_(views::all(std::forward<_Range>(__range))), __pattern_(views::single(std::move(__elem)))… in split_view()
94 return __base_; in base()
97 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
101 __cached_begin_.__emplace(__find_next(ranges::begin(__base_))); in begin()
103 return {*this, ranges::begin(__base_), *__cached_begin_}; in begin()
108 return __iterator{*this, ranges::end(__base_), {}}; in end()
[all …]
H A Dchunk_by_view.h58 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); variable
75 … ranges::adjacent_find(__current, ranges::end(__base_), __reversed_pred), 1, ranges::end(__base_)); in __find_next()
82 …_LIBCPP_ASSERT_PEDANTIC(__current != ranges::begin(__base_), "Trying to call __find_prev() on a be… in __find_prev()
87 auto __first = ranges::begin(__base_); in __find_prev()
101 : __base_(std::move(__base)), __pred_(in_place, std::move(__pred)) {} in chunk_by_view()
106 return __base_; in base()
109 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
118 auto __first = ranges::begin(__base_); in begin()
127 return __iterator{*this, ranges::end(__base_), ranges::end(__base_)}; in end()
H A Dtake_view.h62 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); variable
75 : __base_(std::move(__base)), __count_(__count) { in take_view()
82 return __base_; in base()
85 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
92 return ranges::begin(__base_); in begin()
96 return counted_iterator(ranges::begin(__base_), static_cast<_DifferenceT>(__size)); in begin()
99 return counted_iterator(ranges::begin(__base_), __count_); in begin()
108 return ranges::begin(__base_); in begin()
112 return counted_iterator(ranges::begin(__base_), static_cast<_DifferenceT>(__size)); in begin()
115 return counted_iterator(ranges::begin(__base_), __count_); in begin()
[all …]
H A Ddrop_while_view.h58 : __base_(std::move(__base)), __pred_(std::in_place, std::move(__pred)) {} in base()
63 return __base_; in base()
66 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); }
78 __cached_begin_.__emplace(ranges::find_if_not(__base_, std::cref(*__pred_))); in begin()
82 return ranges::find_if_not(__base_, std::cref(*__pred_)); in end()
86 _LIBCPP_HIDE_FROM_ABI constexpr auto end() { return ranges::end(__base_); }
89 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();
H A Dtake_while_view.h53 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();
62 : __base_(std::move(__base)), __pred_(std::in_place, std::move(__pred)) {} variable
67 return __base_;
70 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in take_while_view()
77 return ranges::begin(__base_); in base()
83 return ranges::begin(__base_); in begin()
89 return __sentinel</*_Const=*/false>(ranges::end(__base_), std::addressof(*__pred_)); in begin()
95 return __sentinel</*_Const=*/true>(ranges::end(__base_), std::addressof(*__pred_)); in end()
H A Djoin_view.h85 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();
100 _LIBCPP_HIDE_FROM_ABI constexpr explicit join_view(_View __base) : __base_(std::move(__base)) {}
105 return __base_;
108 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); }
113 return __iterator<__use_const>{*this, ranges::begin(__base_)};
115 __outer_.__emplace(ranges::begin(__base_));
125 return __iterator<true>{*this, ranges::begin(__base_)};
131 return __iterator<__simple_view<_View>>{*this, ranges::end(__base_)};
143 return __iterator<true>{*this, ranges::end(__base_)};
165 _LIBCPP_HIDE_FROM_ABI constexpr explicit __sentinel(_Parent& __parent) : __end_(ranges::end(__parent.__base_)) {}
[all...]
H A Dlazy_split_view.h72 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); variable
89 : __base_(std::move(__base)), __pattern_(std::move(__pattern)) {} in lazy_split_view()
95 : __base_(views::all(std::forward<_Range>(__r))), __pattern_(views::single(std::move(__e))) {} in lazy_split_view()
100 return __base_; in base()
102 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
106 …ter_iterator < __simple_view<_View> && __simple_view < _Pattern >> {*this, ranges::begin(__base_)}; in begin()
108 __current_.__emplace(ranges::begin(__base_)); in begin()
116 return __outer_iterator<true>{*this, ranges::begin(__base_)}; in begin()
122 …outer_iterator < __simple_view<_View> && __simple_view < _Pattern >> {*this, ranges::end(__base_)}; in end()
127 return __outer_iterator<true>{*this, ranges::end(__base_)}; in end()
[all …]
H A Ddrop_view.h70 _View __base_ = _View(); variable
79 : __count_(__count), __base_(std::move(__base)) { in drop_view()
86 return __base_; in base()
88 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
94 const auto __dist = std::min(ranges::distance(__base_), __count_); in begin()
95 return ranges::begin(__base_) + __dist; in begin()
101 auto __tmp = ranges::next(ranges::begin(__base_), __count_, ranges::end(__base_)); in begin()
110 const auto __dist = std::min(ranges::distance(__base_), __count_); in begin()
111 return ranges::begin(__base_) + __dist; in begin()
117 return ranges::end(__base_); in end()
[all …]
H A Dfilter_view.h58 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();
76 : __base_(std::move(__base)), __pred_(in_place, std::move(__pred)) {} in base()
82 return __base_;
84 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in begin()
94 __cached_begin_.__emplace(ranges::find_if(__base_, std::ref(*__pred_))); in begin()
98 return {*this, ranges::find_if(__base_, std::ref(*__pred_))};
104 return __iterator{*this, ranges::end(__base_)}; in end()
163 ranges::find_if(std::move(++__current_), ranges::end(__parent_->__base_), std::ref(*__parent_->__pred_));
219 _LIBCPP_HIDE_FROM_ABI constexpr explicit __sentinel(filter_view& __parent) : __end_(ranges::end(__parent.__base_)) {}
55 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); global() variable
H A Delements_view.h78 …_LIBCPP_HIDE_FROM_ABI constexpr explicit elements_view(_View __base) : __base_(std::move(__base)) … in elements_view()
83 return __base_; in base()
86 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
91 return __iterator</*_Const=*/false>(ranges::begin(__base_)); in begin()
97 return __iterator</*_Const=*/true>(ranges::begin(__base_)); in begin()
103 return __sentinel</*_Const=*/false>{ranges::end(__base_)}; in end()
109 return __iterator</*_Const=*/false>{ranges::end(__base_)}; in end()
115 return __sentinel</*_Const=*/true>{ranges::end(__base_)}; in end()
121 return __iterator</*_Const=*/true>{ranges::end(__base_)}; in end()
127 return ranges::size(__base_); in size()
[all …]
H A Dtransform_view.h80 _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View(); variable
88 : __func_(std::in_place, std::move(__func)), __base_(std::move(__base)) {} in transform_view()
93 return __base_; in base()
95 _LIBCPP_HIDE_FROM_ABI constexpr _View base() && { return std::move(__base_); } in base()
97 …BI constexpr __iterator<false> begin() { return __iterator<false>{*this, ranges::begin(__base_)}; } in begin()
101 return __iterator<true>(*this, ranges::begin(__base_)); in begin()
104 …HIDE_FROM_ABI constexpr __sentinel<false> end() { return __sentinel<false>(ranges::end(__base_)); } in end()
108 return __iterator<false>(*this, ranges::end(__base_)); in end()
113 return __sentinel<true>(ranges::end(__base_)); in end()
118 return __iterator<true>(*this, ranges::end(__base_)); in end()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dshared_mutex184 __shared_mutex_base __base_;
187 _LIBCPP_HIDE_FROM_ABI shared_mutex() : __base_() {}
195 return __base_.lock();
198 return __base_.try_lock();
201 return __base_.unlock();
206 return __base_.lock_shared();
210 return __base_.try_lock_shared();
213 return __base_.unlock_shared();
223 __shared_mutex_base __base_;
263 unique_lock<mutex> __lk(__base_.__mut_);
[all …]
H A Dtuple534 _BaseT __base_;
566 : __base_(allocator_arg_t(),
579 : __base_(typename __make_tuple_indices<sizeof...(_Tp)>::type(),
591 : __base_(allocator_arg_t(),
616 : __base_(typename __make_tuple_indices<sizeof...(_Up)>::type(),
628 : __base_(allocator_arg_t(),
644 : __base_(allocator_arg_t(), __alloc, __t) {}
650 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {}
683 : __base_(__t) {}
691 : __base_(allocator_arg_t(), __a, __t) {}
[all …]
H A Diomanip108 int __base_;
111 _LIBCPP_HIDE_FROM_ABI explicit __iom_t3(int __b) : __base_(__b) {}
116 __is.setf(__x.__base_ == 8 ? ios_base::oct
117 : __x.__base_ == 10 ? ios_base::dec
118 : __x.__base_ == 16 ? ios_base::hex
127 __os.setf(__x.__base_ == 8 ? ios_base::oct
128 : __x.__base_ == 10 ? ios_base::dec
129 : __x.__base_ == 16 ? ios_base::hex
H A Dbarrier111 unique_ptr<__barrier_algorithm_base, void (*)(__barrier_algorithm_base*)> __base_;
124__base_(std::__construct_barrier_algorithm_base(this->__expected_), &__destroy_barrier_algorithm_b…
134 if (__arrive_barrier_algorithm_base(__base_.get(), __old_phase)) {
H A Ddeque571 : __pos_(__r.__begin_), __end_(__r.__end_), __begin_(__r.__begin_), __base_(__db) {}
573 _LIBCPP_HIDE_FROM_ABI ~_ConstructTransaction() { __base_->__size() += (__pos_ - __begin_); }
580 deque* const __base_;
/freebsd/contrib/llvm-project/libcxx/src/
H A Dshared_mutex.cpp85 shared_timed_mutex::shared_timed_mutex() : __base_() {} in unlock_shared()
86 void shared_timed_mutex::lock() { return __base_.lock(); }
87 bool shared_timed_mutex::try_lock() { return __base_.try_lock(); }
88 void shared_timed_mutex::unlock() { return __base_.unlock(); }
89 void shared_timed_mutex::lock_shared() { return __base_.lock_shared(); } in shared_timed_mutex()
90 bool shared_timed_mutex::try_lock_shared() { return __base_.try_lock_shared(); } in lock()
91 void shared_timed_mutex::unlock_shared() { return __base_.unlock_shared(); } in try_lock()