Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/libcxx/include/__memory/
H A Dauto_ptr.h25 _Tp* __ptr_; member
31 _Tp* __ptr_;
50 reset(__p.__ptr_);
53 _LIBCPP_HIDE_FROM_ABI ~auto_ptr() _NOEXCEPT { delete __ptr_; } in ~auto_ptr() local
59 _Tp* __t = __ptr_; in release()
60 __ptr_ = nullptr; in release()
64 if (__ptr_ != __p)
65 delete __ptr_; variable
66 __ptr_ = __p;
69 _LIBCPP_HIDE_FROM_ABI auto_ptr(auto_ptr_ref<_Tp> __p) _NOEXCEPT : __ptr_(__p.__ptr_) {} in auto_ptr()
[all …]
H A Dallocation_guard.h56__ptr_(allocator_traits<_Alloc>::allocate(__alloc_, __n_)) // initialization order is important in __allocation_guard()
65 __ptr_(__other.__ptr_) { in __allocation_guard()
66 __other.__ptr_ = nullptr; in __allocation_guard()
76 __ptr_ = __other.__ptr_;
77 __other.__ptr_ = nullptr;
85 _Pointer __tmp = __ptr_; in __release_ptr()
86 __ptr_ = nullptr; in __release_ptr()
90 _LIBCPP_HIDE_FROM_ABI _Pointer __get() const _NOEXCEPT { return __ptr_; } in __get()
94 if (__ptr_ != nullptr) { in __destroy()
95 allocator_traits<_Alloc>::deallocate(__alloc_, __ptr_, __n_); in __destroy()
[all …]
H A Dunique_ptr.h179 : __ptr_(__p, __d) {}
244 return *__ptr_.first();
250 return __ptr_.second();
264 __ptr_.first() = __p;
266 __ptr_.second()(__tmp);
347 : __ptr_(__p, __d) {}
421 return __ptr_.second();
436 __ptr_.first() = __p;
438 __ptr_.second()(__tmp);
443 __ptr_.first() = nullptr;
[all …]
H A Dshared_ptr.h424 element_type* __ptr_;
548 : __ptr_(__p),
610 if (__ptr_ == nullptr)
694 std::swap(__ptr_, __r.__ptr_);
724 return __ptr_;
750 return __ptr_[__i];
764 __r.__ptr_ = __p;
766 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
1303 element_type* __ptr_;
1439 std::swap(__ptr_, __r.__ptr_);
[all …]
/freebsd-14.2/contrib/llvm-project/libcxx/src/support/runtime/
H A Dexception_pointer_cxxabi.ipp18 exception_ptr::exception_ptr(const exception_ptr& other) noexcept : __ptr_(other.__ptr_) {
19 __cxa_increment_exception_refcount(__ptr_);
23 if (__ptr_ != other.__ptr_) {
25 __cxa_decrement_exception_refcount(__ptr_);
26 __ptr_ = other.__ptr_;
33 ptr.__ptr_ = __e;
34 __cxa_increment_exception_refcount(ptr.__ptr_);
44 if (__ptr_ == nullptr)
46 rethrow_exception(__ptr_);
54 ptr.__ptr_ = __cxa_current_primary_exception();
[all …]
H A Dexception_pointer_glibcxx.ipp24 void* __ptr_;
38 exception_ptr::exception_ptr(const exception_ptr& other) noexcept : __ptr_(other.__ptr_) {
56 nested_exception::nested_exception() noexcept : __ptr_(current_exception()) {}
59 if (__ptr_ == nullptr)
61 rethrow_exception(__ptr_);
H A Dexception_pointer_unimplemented.ipp21 exception_ptr::exception_ptr(const exception_ptr& other) noexcept : __ptr_(other.__ptr_) {
39 nested_exception::nested_exception() noexcept : __ptr_(current_exception()) {}
52 if (__ptr_ == nullptr)
54 rethrow_exception(__ptr_);
H A Dexception_pointer_msvc.ipp66 nested_exception::nested_exception() noexcept : __ptr_(current_exception()) {}
71 if (__ptr_ == nullptr)
73 rethrow_exception(__ptr_);
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A D__node_handle98 __node_pointer_type __ptr_ = nullptr;
102 __ptr_ = nullptr;
107 if (__ptr_ != nullptr) {
111 __ptr_ = nullptr;
116 : __ptr_(__ptr), __alloc_(__alloc) {}
122 : __ptr_(__other.__ptr_), __alloc_(std::move(__other.__alloc_)) {
123 __other.__ptr_ = nullptr;
135 __ptr_ = __other.__ptr_;
140 __other.__ptr_ = nullptr;
155 swap(__ptr_, __other.__ptr_);
[all …]
H A Dsource_location49 const __impl* __ptr_ = nullptr;
62 __sl.__ptr_ = static_cast<const __impl*>(__ptr);
68 return __ptr_ != nullptr ? __ptr_->_M_line : 0;
71 return __ptr_ != nullptr ? __ptr_->_M_column : 0;
74 return __ptr_ != nullptr ? __ptr_->_M_file_name : "";
77 return __ptr_ != nullptr ? __ptr_->_M_function_name : "";
H A Dlist383 __ptr_ = __ptr_->__next_;
393 __ptr_ = __ptr_->__prev_;
403 return __x.__ptr_ == __y.__ptr_;
433 : __ptr_(__p.__ptr_) {}
441 __ptr_ = __ptr_->__next_;
451 __ptr_ = __ptr_->__prev_;
461 return __x.__ptr_ == __y.__ptr_;
1197 __link_nodes(__p.__ptr_, __r.__ptr_, __e.__ptr_);
1240 __link_nodes(__p.__ptr_, __r.__ptr_, __e.__ptr_);
1468 if (__p.__ptr_ != __i.__ptr_ && __p.__ptr_ != __i.__ptr_->__next_) {
[all …]
H A D__tree730 __iter_pointer __ptr_;
741 : __ptr_(nullptr)
772 return __x.__ptr_ == __y.__ptr_;
807 __iter_pointer __ptr_;
818 : __ptr_(nullptr)
827 …CPP_HIDE_FROM_ABI __tree_const_iterator(__non_const_iterator __p) _NOEXCEPT : __ptr_(__p.__ptr_) {}
857 return __x.__ptr_ == __y.__ptr_;
1920 __begin_node() = __r.__ptr_;
1934 __node_pointer __ptr = __nh.__ptr_;
1952 __node_pointer __ptr = __nh.__ptr_;
[all …]
H A Dforward_list357 __iter_node_pointer __ptr_;
369 : __ptr_(__traits::__as_iter_node(__p)) {}
372 : __ptr_(__traits::__as_iter_node(__p)) {}
394 __ptr_ = __traits::__as_iter_node(__ptr_->__next_);
404 return __x.__ptr_ == __y.__ptr_;
423 __iter_node_pointer __ptr_;
435 : __ptr_(__traits::__as_iter_node(__p)) {}
438 : __ptr_(__traits::__as_iter_node(__p)) {}
452 : __ptr_(__p.__ptr_) {}
460 __ptr_ = __traits::__as_iter_node(__ptr_->__next_);
[all …]
H A Ddeque278 pointer __ptr_;
290 __ptr_(nullptr)
299 __ptr_(__it.__ptr_) {}
307 __ptr_ = *__m_iter_;
319 if (__ptr_ == *__m_iter_) {
323 --__ptr_;
335 __n += __ptr_ - *__m_iter_;
377 return __x.__ptr_ == __y.__ptr_;
385 …eturn __x.__m_iter_ < __y.__m_iter_ || (__x.__m_iter_ == __y.__m_iter_ && __x.__ptr_ < __y.__ptr_);
403 __ptr_(__p) {}
[all …]
H A D__hash_table1563 pair<iterator, bool> __result = __node_insert_unique(__nh.__ptr_);
1575 pair<iterator, bool> __result = __node_insert_unique(__nh.__ptr_);
1622 iterator __result = __node_insert_multi(__nh.__ptr_);
1633 iterator __result = __node_insert_multi(__hint, __nh.__ptr_);
/freebsd-14.2/contrib/llvm-project/libcxx/include/__format/
H A Dbuffer.h68 : __ptr_(__ptr), in __output_buffer()
74 __ptr_ = __ptr; in __reset()
82 __ptr_[__size_++] = __c; in push_back()
182 __flush_(__ptr_, __size_, __obj_); in __flush()
187 _CharT* __ptr_;
565 __ptr_ = __result.ptr;
570 ranges::destroy_n(__ptr_, __size_);
577 std::construct_at(__ptr_ + __size_, __c);
635 ranges::destroy_n(__ptr_, __size_);
638 __ptr_ = __result.ptr;
[all …]
H A Dformat_arg.h141 return std::invoke(std::forward<_Visitor>(__vis), __arg.__value_.__ptr_); in decltype()
163 : __ptr_(std::addressof(__v)), in __handle()
174 const void* __ptr_; member
195 const void* __ptr_; member
220 _LIBCPP_HIDE_FROM_ABI __basic_format_arg_value(const void* __value) noexcept : __ptr_(__value) {} in __basic_format_arg_value()
260 __handle_.__format_(__parse_ctx, __ctx, __handle_.__ptr_); in format()
/freebsd-14.2/contrib/llvm-project/libcxx/include/__mdspan/
H A Dmdspan.h127 : __ptr_(std::move(__p)), __map_(extents_type(__exts)), __acc_{} {} in mdspan()
136 : __ptr_(std::move(__p)), __map_(extents_type(__exts)), __acc_{} {} in mdspan()
140 : __ptr_(std::move(__p)), __map_(__exts), __acc_{} {} in mdspan()
144 : __ptr_(std::move(__p)), __map_(__m), __acc_{} {} in mdspan()
147 : __ptr_(std::move(__p)), __map_(__m), __acc_(__a) {} in mdspan()
156 : __ptr_(__other.__ptr_), __map_(__other.__map_), __acc_(__other.__acc_) { in requires()
195 return __acc_.access(__ptr_, __map_(static_cast<index_type>(std::move(__indices))...));
202 return __acc_.access(__ptr_, [&]<size_t... _Idxs>(index_sequence<_Idxs...>) { in requires()
211 return __acc_.access(__ptr_, [&]<size_t... _Idxs>(index_sequence<_Idxs...>) { in requires()
237 swap(__x.__ptr_, __y.__ptr_); in swap()
[all …]
/freebsd-14.2/contrib/llvm-project/libcxx/include/experimental/
H A Dmemory78 _LIBCPP_HIDE_FROM_ABI constexpr observer_ptr() noexcept : __ptr_(nullptr) {}
79 _LIBCPP_HIDE_FROM_ABI constexpr observer_ptr(nullptr_t) noexcept : __ptr_(nullptr) {}
80 _LIBCPP_HIDE_FROM_ABI constexpr explicit observer_ptr(element_type* __p) noexcept : __ptr_(__p) {}
83 …_LIBCPP_HIDE_FROM_ABI constexpr observer_ptr(observer_ptr<_W2> __other) noexcept : __ptr_(__other.…
86 _LIBCPP_HIDE_FROM_ABI constexpr element_type* get() const noexcept { return __ptr_; }
87 _LIBCPP_HIDE_FROM_ABI constexpr add_lvalue_reference_t<_Wp> operator*() const { return *__ptr_; }
88 _LIBCPP_HIDE_FROM_ABI constexpr element_type* operator->() const noexcept { return __ptr_; }
89 …_LIBCPP_HIDE_FROM_ABI constexpr explicit operator bool() const noexcept { return __ptr_ != nullptr…
92 …_LIBCPP_HIDE_FROM_ABI constexpr explicit operator element_type*() const noexcept { return __ptr_; }
95 _LIBCPP_HIDE_FROM_ABI constexpr void reset(element_type* __p = nullptr) noexcept { __ptr_ = __p; }
[all …]
/freebsd-14.2/contrib/llvm-project/libcxx/include/__exception/
H A Dexception_ptr.h55 void* __ptr_; variable
63 _LIBCPP_HIDE_FROM_ABI exception_ptr() _NOEXCEPT : __ptr_() {} in exception_ptr()
64 _LIBCPP_HIDE_FROM_ABI exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {} in exception_ptr()
70 _LIBCPP_HIDE_FROM_ABI explicit operator bool() const _NOEXCEPT { return __ptr_ != nullptr; }
73 return __x.__ptr_ == __y.__ptr_;
H A Dnested_exception.h32 exception_ptr __ptr_; variable
42 _LIBCPP_HIDE_FROM_ABI exception_ptr nested_ptr() const _NOEXCEPT { return __ptr_; } in nested_ptr()