Home
last modified time | relevance | path

Searched refs:__count_ (Results 1 – 6 of 6) sorted by relevance

/openbsd-src/gnu/llvm/libcxx/include/__iterator/
H A Dcounted_iterator.h75 iter_difference_t<_Iter> __count_ = 0;
85 : __current_(_VSTD::move(__iter)), __count_(__n) {
93 : __current_(__other.__current_), __count_(__other.__count_) {}
100 __count_ = __other.__count_;
111 constexpr iter_difference_t<_Iter> count() const noexcept { return __count_; }
115 _LIBCPP_ASSERT(__count_ > 0, "Iterator is equal to or past end.");
123 _LIBCPP_ASSERT(__count_ > 0, "Iterator is equal to or past end.");
136 _LIBCPP_ASSERT(__count_ > 0, "Iterator already at or past end.");
138 --__count_;
144 _LIBCPP_ASSERT(__count_ > 0, "Iterator already at or past end.");
[all …]
/openbsd-src/gnu/llvm/libcxx/src/
H A Dmutex.cpp139 : __count_(0), in recursive_timed_mutex()
156 if (__count_ == numeric_limits<size_t>::max()) in lock()
158 ++__count_; in lock()
161 while (__count_ != 0) in lock()
163 __count_ = 1; in lock()
172 if (lk.owns_lock() && (__count_ == 0 || id == __id_)) in try_lock()
174 if (__count_ == numeric_limits<size_t>::max()) in try_lock()
176 ++__count_; in try_lock()
187 if (--__count_ == 0) in unlock()
/openbsd-src/gnu/llvm/libcxx/include/__ranges/
H A Ddrop_view.h65 range_difference_t<_View> __count_ = 0; variable
73 : __count_(__count) in drop_view()
76 _LIBCPP_ASSERT(__count_ >= 0, "count must be greater than or equal to zero."); in drop_view()
91 auto __tmp = ranges::next(ranges::begin(__base_), __count_, ranges::end(__base_)); in begin()
101 return ranges::next(ranges::begin(__base_), __count_, ranges::end(__base_)); in begin()
117 const auto __c = static_cast<decltype(__s)>(__self.__count_); in __size()
H A Dtake_view.h59 range_difference_t<_View> __count_ = 0; variable
68 : __base_(std::move(__base)), __count_(__count) { in take_view()
89 return counted_iterator(ranges::begin(__base_), __count_); in begin()
104 return counted_iterator(ranges::begin(__base_), __count_); in begin()
137 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
143 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
/openbsd-src/gnu/llvm/libcxx/include/
H A Dmutex280 size_t __count_;
310 if (__count_ == numeric_limits<size_t>::max())
312 ++__count_;
316 while (no_timeout && __count_ != 0)
318 if (__count_ == 0)
320 __count_ = 1;
/openbsd-src/gnu/llvm/libcxx/include/__memory/
H A Dshared_ptr.h1045 : __alloc_(__alloc), __count_(__count)
1047 …:__uninitialized_allocator_fill_n_multidimensional(__alloc_, std::begin(__data_), __count_, __arg);
1052 : __alloc_(__alloc), __count_(__count)
1058 std::uninitialized_default_construct_n(std::begin(__data_), __count_);
1060 …ninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), __count_);
1063 …ninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), __count_);
1090 std::__reverse_destroy(__data_, __data_ + __count_);
1093 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_);
1097 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_);
1108 size_t __size = __unbounded_array_control_block::__bytes_for(__count_);
[all …]