Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/include/__iterator/
H A Dcounted_iterator.h87 : __current_(__other.__current_), __count_(__other.__count_) {}
94 __count_ = __other.__count_;
132 --__count_;
139 --__count_;
163 ++__count_;
197 __count_ -= __n;
213 return __rhs.__count_ - __lhs.__count_;
238 __count_ += __n;
255 return __lhs.__count_ == __rhs.__count_;
269 return __rhs.__count_ <=> __lhs.__count_;
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/libcxx/include/__ranges/
H A Ddrop_view.h63 range_difference_t<_View> __count_ = 0; variable
71 : __count_(__count) in drop_view()
74 _LIBCPP_ASSERT(__count_ >= 0, "count must be greater than or equal to zero."); in drop_view()
89 auto __tmp = ranges::next(ranges::begin(__base_), __count_, ranges::end(__base_)); in begin()
99 return ranges::next(ranges::begin(__base_), __count_, ranges::end(__base_)); in begin()
115 const auto __c = static_cast<decltype(__s)>(__self.__count_); in __size()
H A Dtake_view.h55 range_difference_t<_View> __count_ = 0; variable
65 : __base_(std::move(__base)), __count_(__count) {} in take_view()
84 return counted_iterator(ranges::begin(__base_), __count_); in begin()
99 return counted_iterator(ranges::begin(__base_), __count_); in begin()
132 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
138 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
/llvm-project-15.0.7/libcxx/include/
H A Dmutex284 size_t __count_;
314 if (__count_ == numeric_limits<size_t>::max())
316 ++__count_;
320 while (no_timeout && __count_ != 0)
322 if (__count_ == 0)
324 __count_ = 1;
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dshared_ptr.h983 : __alloc_(__alloc), __count_(__count)
985 std::__uninitialized_allocator_fill_n(__alloc_, std::begin(__data_), __count_, __arg);
990 : __alloc_(__alloc), __count_(__count)
992 std::__uninitialized_allocator_value_construct_n(__alloc_, std::begin(__data_), __count_);
1017 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_);
1027 size_t __size = __unbounded_array_control_block::__bytes_for(__count_);
1033 size_t __count_;