Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Dcounted_iterator.h84 : __current_(std::move(__iter)), __count_(__n) {
91 : __current_(__other.__current_), __count_(__other.__count_) {}
97 __count_ = __other.__count_;
105 …_LIBCPP_HIDE_FROM_ABI constexpr iter_difference_t<_Iter> count() const noexcept { return __count_;…
108 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__count_ > 0, "Iterator is equal to or past end.");
115 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__count_ > 0, "Iterator is equal to or past end.");
126 _LIBCPP_ASSERT_UNCATEGORIZED(__count_ > 0, "Iterator already at or past end.");
128 --__count_;
133 _LIBCPP_ASSERT_UNCATEGORIZED(__count_ > 0, "Iterator already at or past end.");
134 --__count_;
[all …]
/freebsd/contrib/llvm-project/libcxx/src/
H A Dmutex.cpp103 recursive_timed_mutex::recursive_timed_mutex() : __count_(0), __id_{} {} in recursive_timed_mutex()
111 if (__count_ == numeric_limits<size_t>::max()) in lock()
113 ++__count_; in lock()
116 while (__count_ != 0) in lock()
118 __count_ = 1; in lock()
125 if (lk.owns_lock() && (__count_ == 0 || id == __id_)) { in try_lock()
126 if (__count_ == numeric_limits<size_t>::max()) in try_lock()
128 ++__count_; in try_lock()
137 if (--__count_ == 0) { in unlock()
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dunique_temporary_buffer.h31 ptrdiff_t __count_; // ignored in non-constant evaluation member
33 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __temporary_buffer_deleter() _NOEXCEPT : __count_(0) {} in __temporary_buffer_deleter()
35 …_LIBCPP_CONSTEXPR explicit __temporary_buffer_deleter(ptrdiff_t __count) _NOEXCEPT : __count_(__co… in __temporary_buffer_deleter()
39 allocator<_Tp>().deallocate(__ptr, __count_); in operator()
H A Dtemporary_buffer.h30 pair<_Tp*, ptrdiff_t> __result(__unique_buf.get(), __unique_buf.get_deleter().__count_); in get_temporary_buffer()
H A Dshared_ptr.h779 : __alloc_(__alloc), __count_(__count) {
780 …std::__uninitialized_allocator_fill_n_multidimensional(__alloc_, std::begin(__data_), __count_, __…
784 : __alloc_(__alloc), __count_(__count) {
789 std::uninitialized_default_construct_n(std::begin(__data_), __count_);
791 …ninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), __count_);
794 …ninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), __count_);
821 std::__reverse_destroy(__data_, __data_ + __count_);
824 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_);
828 std::__allocator_destroy_multidimensional(__value_alloc, __data_, __data_ + __count_);
839 size_t __size = __unbounded_array_control_block::__bytes_for(__count_);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Ddrop_view.h69 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 Dtake_view.h62 range_difference_t<_View> __count_ = 0; variable
74 : __base_(std::move(__base)), __count_(__count) { in take_view()
98 return counted_iterator(ranges::begin(__base_), __count_); in begin()
114 return counted_iterator(ranges::begin(__base_), __count_); in begin()
150 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
157 return ranges::min(__n, static_cast<decltype(__n)>(__count_)); in size()
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dmutex278 size_t __count_;
306 if (__count_ == numeric_limits<size_t>::max())
308 ++__count_;
312 while (__no_timeout && __count_ != 0)
314 if (__count_ == 0) {
315 __count_ = 1;
/freebsd/contrib/llvm-project/libcxx/include/
H A Dmutex280 size_t __count_;
303 if (__count_ == numeric_limits<size_t>::max())
305 ++__count_;
309 while (__no_timeout && __count_ != 0)
311 if (__count_ == 0) {
312 __count_ = 1;
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dstable_partition.h142 __p.second = __unique_buf.get_deleter().__count_; in __stable_partition_impl()
280 __p.second = __unique_buf.get_deleter().__count_; in __stable_partition_impl()
H A Dinplace_merge.h223 __unique_buf.get_deleter().__count_); in __inplace_merge()
H A Dstable_sort.h301 __buf.second = __unique_buf.get_deleter().__count_; in __stable_sort_impl()