Searched refs:__count_ (Results 1 – 6 of 6) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__iterator/ |
| H A D | counted_iterator.h | 91 : __current_(__other.__current_), __count_(__other.__count_) {} 97 __count_ = __other.__count_; 128 --__count_; 134 --__count_; 139 ++__count_; 160 ++__count_; 190 __count_ -= __n; 203 return __rhs.__count_ - __lhs.__count_; 225 __count_ += __n; 239 return __lhs.__count_ == __rhs.__count_; [all …]
|
| /freebsd-14.2/contrib/llvm-project/libcxx/src/ |
| H A D | mutex.cpp | 102 recursive_timed_mutex::recursive_timed_mutex() : __count_(0), __id_{} {} in recursive_timed_mutex() 110 if (__count_ == numeric_limits<size_t>::max()) in lock() 112 ++__count_; in lock() 115 while (__count_ != 0) in lock() 117 __count_ = 1; in lock() 124 if (lk.owns_lock() && (__count_ == 0 || id == __id_)) { in try_lock() 125 if (__count_ == numeric_limits<size_t>::max()) in try_lock() 127 ++__count_; in try_lock() 136 if (--__count_ == 0) { in unlock()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__ranges/ |
| H A D | drop_view.h | 69 range_difference_t<_View> __count_ = 0; variable 79 : __count_(__count), __base_(std::move(__base)) { in drop_view() 80 _LIBCPP_ASSERT_UNCATEGORIZED(__count_ >= 0, "count must be greater than or equal to zero."); in drop_view() 94 const auto __dist = std::min(ranges::distance(__base_), __count_); 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() 128 const auto __c = static_cast<decltype(__s)>(__self.__count_); in __size()
|
| H A D | take_view.h | 63 range_difference_t<_View> __count_ = 0; variable 75 : __base_(std::move(__base)), __count_(__count) { in take_view() 99 return counted_iterator(ranges::begin(__base_), __count_); in begin() 115 return counted_iterator(ranges::begin(__base_), __count_); in begin() 151 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size() 158 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ |
| H A D | mutex | 282 size_t __count_; 310 if (__count_ == numeric_limits<size_t>::max()) 312 ++__count_; 316 while (__no_timeout && __count_ != 0) 318 if (__count_ == 0) { 319 __count_ = 1;
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__memory/ |
| H A D | shared_ptr.h | 866 : __alloc_(__alloc), __count_(__count) { 867 …std::__uninitialized_allocator_fill_n_multidimensional(__alloc_, std::begin(__data_), __count_, __… 871 : __alloc_(__alloc), __count_(__count) { 876 std::uninitialized_default_construct_n(std::begin(__data_), __count_); 878 …ninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), __count_); 881 …ninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), __count_); 908 std::__reverse_destroy(__data_, __data_ + __count_); 911 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_); 915 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_); 926 size_t __size = __unbounded_array_control_block::__bytes_for(__count_); [all …]
|