Lines Matching refs:__r

947                                            __nat, element_type>::type& __r)
948 {return pointer::pointer_to(__r);}
969 __nat, element_type>::type& __r) _NOEXCEPT
970 {return _VSTD::addressof(__r);}
1976 pair<_Tp*, ptrdiff_t> __r(0, 0);
1984 __r.first = static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), nothrow));
1985 if (__r.first)
1987 __r.second = __n;
1992 return __r;
3107 uninitialized_copy(_InputIterator __f, _InputIterator __l, _ForwardIterator __r)
3111 _ForwardIterator __s = __r;
3115 for (; __f != __l; ++__f, (void) ++__r)
3116 ::new (static_cast<void*>(_VSTD::addressof(*__r))) value_type(*__f);
3121 for (; __s != __r; ++__s)
3126 return __r;
3131 uninitialized_copy_n(_InputIterator __f, _Size __n, _ForwardIterator __r)
3135 _ForwardIterator __s = __r;
3139 for (; __n > 0; ++__f, (void) ++__r, (void) --__n)
3140 ::new (static_cast<void*>(_VSTD::addressof(*__r))) value_type(*__f);
3145 for (; __s != __r; ++__s)
3150 return __r;
3636 …template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type*…
3638 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
3641 shared_ptr(const shared_ptr<_Yp>& __r,
3646 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
3647 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
3651 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
3656 shared_ptr(auto_ptr<_Yp>&& __r,
3660 shared_ptr(auto_ptr<_Yp> __r,
3707 shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT;
3715 operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT;
3718 shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT;
3726 operator=(shared_ptr<_Yp>&& __r);
3736 operator=(auto_ptr<_Yp>&& __r);
3748 operator=(auto_ptr<_Yp> __r);
3760 operator=(unique_ptr<_Yp, _Dp>&& __r);
3763 operator=(unique_ptr<_Yp, _Dp> __r);
3767 void swap(shared_ptr& __r) _NOEXCEPT;
4028 shared_ptr<_Tp>::shared_ptr(const shared_ptr<_Yp>& __r, element_type *__p) _NOEXCEPT
4030 __cntrl_(__r.__cntrl_)
4038 shared_ptr<_Tp>::shared_ptr(const shared_ptr& __r) _NOEXCEPT
4039 : __ptr_(__r.__ptr_),
4040 __cntrl_(__r.__cntrl_)
4049 shared_ptr<_Tp>::shared_ptr(const shared_ptr<_Yp>& __r,
4052 : __ptr_(__r.__ptr_),
4053 __cntrl_(__r.__cntrl_)
4063 shared_ptr<_Tp>::shared_ptr(shared_ptr&& __r) _NOEXCEPT
4064 : __ptr_(__r.__ptr_),
4065 __cntrl_(__r.__cntrl_)
4067 __r.__ptr_ = 0;
4068 __r.__cntrl_ = 0;
4074 shared_ptr<_Tp>::shared_ptr(shared_ptr<_Yp>&& __r,
4077 : __ptr_(__r.__ptr_),
4078 __cntrl_(__r.__cntrl_)
4080 __r.__ptr_ = 0;
4081 __r.__cntrl_ = 0;
4090 shared_ptr<_Tp>::shared_ptr(auto_ptr<_Yp>&& __r,
4092 shared_ptr<_Tp>::shared_ptr(auto_ptr<_Yp> __r,
4095 : __ptr_(__r.get())
4098 __cntrl_ = new _CntrlBlk(__r.get(), default_delete<_Yp>(), allocator<_Yp>());
4099 __enable_weak_this(__r.get(), __r.get());
4100 __r.release();
4107 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp>&& __r,
4109 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp> __r,
4118 : __ptr_(__r.get())
4127 __cntrl_ = new _CntrlBlk(__r.get(), __r.get_deleter(), allocator<_Yp>());
4128 __enable_weak_this(__r.get(), __r.get());
4130 __r.release();
4136 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp>&& __r,
4138 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp> __r,
4147 : __ptr_(__r.get())
4158 __cntrl_ = new _CntrlBlk(__r.get(), ref(__r.get_deleter()), allocator<_Yp>());
4159 __enable_weak_this(__r.get(), __r.get());
4161 __r.release();
4177 shared_ptr<_Tp> __r;
4178 __r.__ptr_ = __hold2.get()->get();
4179 __r.__cntrl_ = __hold2.release();
4180 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4181 return __r;
4196 shared_ptr<_Tp> __r;
4197 __r.__ptr_ = __hold2.get()->get();
4198 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4199 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4200 return __r;
4215 shared_ptr<_Tp> __r;
4216 __r.__ptr_ = __hold2.get()->get();
4217 __r.__cntrl_ = __hold2.release();
4218 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4219 return __r;
4233 shared_ptr<_Tp> __r;
4234 __r.__ptr_ = __hold2.get()->get();
4235 __r.__cntrl_ = __hold2.release();
4236 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4237 return __r;
4251 shared_ptr<_Tp> __r;
4252 __r.__ptr_ = __hold2.get()->get();
4253 __r.__cntrl_ = __hold2.release();
4254 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4255 return __r;
4269 shared_ptr<_Tp> __r;
4270 __r.__ptr_ = __hold2.get()->get();
4271 __r.__cntrl_ = __hold2.release();
4272 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4273 return __r;
4288 shared_ptr<_Tp> __r;
4289 __r.__ptr_ = __hold2.get()->get();
4290 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4291 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4292 return __r;
4307 shared_ptr<_Tp> __r;
4308 __r.__ptr_ = __hold2.get()->get();
4309 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4310 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4311 return __r;
4326 shared_ptr<_Tp> __r;
4327 __r.__ptr_ = __hold2.get()->get();
4328 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4329 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4330 return __r;
4345 shared_ptr<_Tp> __r;
4346 __r.__ptr_ = __hold2.get()->get();
4347 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4348 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4349 return __r;
4364 shared_ptr<_Tp>::operator=(const shared_ptr& __r) _NOEXCEPT
4366 shared_ptr(__r).swap(*this);
4378 shared_ptr<_Tp>::operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT
4380 shared_ptr(__r).swap(*this);
4389 shared_ptr<_Tp>::operator=(shared_ptr&& __r) _NOEXCEPT
4391 shared_ptr(_VSTD::move(__r)).swap(*this);
4403 shared_ptr<_Tp>::operator=(shared_ptr<_Yp>&& __r)
4405 shared_ptr(_VSTD::move(__r)).swap(*this);
4419 shared_ptr<_Tp>::operator=(auto_ptr<_Yp>&& __r)
4421 shared_ptr(_VSTD::move(__r)).swap(*this);
4436 shared_ptr<_Tp>::operator=(unique_ptr<_Yp, _Dp>&& __r)
4438 shared_ptr(_VSTD::move(__r)).swap(*this);
4454 shared_ptr<_Tp>::operator=(auto_ptr<_Yp> __r)
4456 shared_ptr(__r).swap(*this);
4471 shared_ptr<_Tp>::operator=(unique_ptr<_Yp, _Dp> __r)
4473 shared_ptr(_VSTD::move(__r)).swap(*this);
4482 shared_ptr<_Tp>::swap(shared_ptr& __r) _NOEXCEPT
4484 _VSTD::swap(__ptr_, __r.__ptr_);
4485 _VSTD::swap(__cntrl_, __r.__cntrl_);
4789 static_pointer_cast(const shared_ptr<_Up>& __r) _NOEXCEPT
4791 return shared_ptr<_Tp>(__r, static_cast<_Tp*>(__r.get()));
4801 dynamic_pointer_cast(const shared_ptr<_Up>& __r) _NOEXCEPT
4803 _Tp* __p = dynamic_cast<_Tp*>(__r.get());
4804 return __p ? shared_ptr<_Tp>(__r, __p) : shared_ptr<_Tp>();
4813 const_pointer_cast(const shared_ptr<_Up>& __r) _NOEXCEPT
4816 return shared_ptr<_Tp>(__r, const_cast<_RTp*>(__r.get()));
4843 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Yp> const& __r,
4847 weak_ptr(weak_ptr const& __r) _NOEXCEPT;
4848 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp> const& __r,
4854 weak_ptr(weak_ptr&& __r) _NOEXCEPT;
4855 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r,
4862 weak_ptr& operator=(weak_ptr const& __r) _NOEXCEPT;
4870 operator=(weak_ptr<_Yp> const& __r) _NOEXCEPT;
4875 weak_ptr& operator=(weak_ptr&& __r) _NOEXCEPT;
4883 operator=(weak_ptr<_Yp>&& __r) _NOEXCEPT;
4894 operator=(shared_ptr<_Yp> const& __r) _NOEXCEPT;
4897 void swap(weak_ptr& __r) _NOEXCEPT;
4910 bool owner_before(const shared_ptr<_Up>& __r) const
4911 {return __cntrl_ < __r.__cntrl_;}
4914 bool owner_before(const weak_ptr<_Up>& __r) const
4915 {return __cntrl_ < __r.__cntrl_;}
4932 weak_ptr<_Tp>::weak_ptr(weak_ptr const& __r) _NOEXCEPT
4933 : __ptr_(__r.__ptr_),
4934 __cntrl_(__r.__cntrl_)
4943 weak_ptr<_Tp>::weak_ptr(shared_ptr<_Yp> const& __r,
4946 : __ptr_(__r.__ptr_),
4947 __cntrl_(__r.__cntrl_)
4956 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp> const& __r,
4959 : __ptr_(__r.__ptr_),
4960 __cntrl_(__r.__cntrl_)
4970 weak_ptr<_Tp>::weak_ptr(weak_ptr&& __r) _NOEXCEPT
4971 : __ptr_(__r.__ptr_),
4972 __cntrl_(__r.__cntrl_)
4974 __r.__ptr_ = 0;
4975 __r.__cntrl_ = 0;
4981 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp>&& __r,
4984 : __ptr_(__r.__ptr_),
4985 __cntrl_(__r.__cntrl_)
4987 __r.__ptr_ = 0;
4988 __r.__cntrl_ = 0;
5003 weak_ptr<_Tp>::operator=(weak_ptr const& __r) _NOEXCEPT
5005 weak_ptr(__r).swap(*this);
5017 weak_ptr<_Tp>::operator=(weak_ptr<_Yp> const& __r) _NOEXCEPT
5019 weak_ptr(__r).swap(*this);
5028 weak_ptr<_Tp>::operator=(weak_ptr&& __r) _NOEXCEPT
5030 weak_ptr(_VSTD::move(__r)).swap(*this);
5042 weak_ptr<_Tp>::operator=(weak_ptr<_Yp>&& __r) _NOEXCEPT
5044 weak_ptr(_VSTD::move(__r)).swap(*this);
5058 weak_ptr<_Tp>::operator=(shared_ptr<_Yp> const& __r) _NOEXCEPT
5060 weak_ptr(__r).swap(*this);
5067 weak_ptr<_Tp>::swap(weak_ptr& __r) _NOEXCEPT
5069 _VSTD::swap(__ptr_, __r.__ptr_);
5070 _VSTD::swap(__cntrl_, __r.__cntrl_);
5091 shared_ptr<_Tp>::shared_ptr(const weak_ptr<_Yp>& __r,
5093 : __ptr_(__r.__ptr_),
5094 __cntrl_(__r.__cntrl_ ? __r.__cntrl_->lock() : __r.__cntrl_)
5104 shared_ptr<_Tp> __r;
5105 __r.__cntrl_ = __cntrl_ ? __cntrl_->lock() : __cntrl_;
5106 if (__r.__cntrl_)
5107 __r.__ptr_ = __ptr_;
5108 return __r;
5275 atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r)
5279 __p->swap(__r);
5286 atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order)
5288 atomic_store(__p, __r);
5293 atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r)
5297 __p->swap(__r);
5299 return __r;
5305 atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order)
5307 return atomic_exchange(__p, __r);