Lines Matching refs:__r
967 __nat, element_type>::type& __r)
968 {return pointer::pointer_to(__r);}
989 __nat, element_type>::type& __r) _NOEXCEPT
990 {return _VSTD::addressof(__r);}
2025 pair<_Tp*, ptrdiff_t> __r(0, 0);
2038 __r.first = static_cast<_Tp*>(::operator new(
2041 __r.first = static_cast<_Tp*>(::operator new(
2049 return __r;
2052 __r.first = static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), nothrow));
2055 if (__r.first)
2057 __r.second = __n;
2062 return __r;
3228 uninitialized_copy(_InputIterator __f, _InputIterator __l, _ForwardIterator __r)
3232 _ForwardIterator __s = __r;
3236 for (; __f != __l; ++__f, (void) ++__r)
3237 ::new (static_cast<void*>(_VSTD::addressof(*__r))) value_type(*__f);
3242 for (; __s != __r; ++__s)
3247 return __r;
3252 uninitialized_copy_n(_InputIterator __f, _Size __n, _ForwardIterator __r)
3256 _ForwardIterator __s = __r;
3260 for (; __n > 0; ++__f, (void) ++__r, (void) --__n)
3261 ::new (static_cast<void*>(_VSTD::addressof(*__r))) value_type(*__f);
3266 for (; __s != __r; ++__s)
3271 return __r;
3769 …template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type*…
3771 shared_ptr(const shared_ptr& __r) _NOEXCEPT;
3774 shared_ptr(const shared_ptr<_Yp>& __r,
3779 shared_ptr(shared_ptr&& __r) _NOEXCEPT;
3780 template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(shared_ptr<_Yp>&& __r,
3784 template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
3789 shared_ptr(auto_ptr<_Yp>&& __r,
3793 shared_ptr(auto_ptr<_Yp> __r,
3840 shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT;
3848 operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT;
3851 shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT;
3859 operator=(shared_ptr<_Yp>&& __r);
3869 operator=(auto_ptr<_Yp>&& __r);
3881 operator=(auto_ptr<_Yp> __r);
3893 operator=(unique_ptr<_Yp, _Dp>&& __r);
3896 operator=(unique_ptr<_Yp, _Dp> __r);
3900 void swap(shared_ptr& __r) _NOEXCEPT;
4180 shared_ptr<_Tp>::shared_ptr(const shared_ptr<_Yp>& __r, element_type *__p) _NOEXCEPT
4182 __cntrl_(__r.__cntrl_)
4190 shared_ptr<_Tp>::shared_ptr(const shared_ptr& __r) _NOEXCEPT
4191 : __ptr_(__r.__ptr_),
4192 __cntrl_(__r.__cntrl_)
4201 shared_ptr<_Tp>::shared_ptr(const shared_ptr<_Yp>& __r,
4204 : __ptr_(__r.__ptr_),
4205 __cntrl_(__r.__cntrl_)
4215 shared_ptr<_Tp>::shared_ptr(shared_ptr&& __r) _NOEXCEPT
4216 : __ptr_(__r.__ptr_),
4217 __cntrl_(__r.__cntrl_)
4219 __r.__ptr_ = 0;
4220 __r.__cntrl_ = 0;
4226 shared_ptr<_Tp>::shared_ptr(shared_ptr<_Yp>&& __r,
4229 : __ptr_(__r.__ptr_),
4230 __cntrl_(__r.__cntrl_)
4232 __r.__ptr_ = 0;
4233 __r.__cntrl_ = 0;
4242 shared_ptr<_Tp>::shared_ptr(auto_ptr<_Yp>&& __r,
4244 shared_ptr<_Tp>::shared_ptr(auto_ptr<_Yp> __r,
4247 : __ptr_(__r.get())
4250 __cntrl_ = new _CntrlBlk(__r.get(), default_delete<_Yp>(), allocator<_Yp>());
4251 __enable_weak_this(__r.get(), __r.get());
4252 __r.release();
4259 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp>&& __r,
4261 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp> __r,
4270 : __ptr_(__r.get())
4280 __cntrl_ = new _CntrlBlk(__r.get(), __r.get_deleter(), _AllocT());
4281 __enable_weak_this(__r.get(), __r.get());
4283 __r.release();
4289 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp>&& __r,
4291 shared_ptr<_Tp>::shared_ptr(unique_ptr<_Yp, _Dp> __r,
4300 : __ptr_(__r.get())
4312 __cntrl_ = new _CntrlBlk(__r.get(), ref(__r.get_deleter()), _AllocT());
4313 __enable_weak_this(__r.get(), __r.get());
4315 __r.release();
4332 shared_ptr<_Tp> __r;
4333 __r.__ptr_ = __hold2.get()->get();
4334 __r.__cntrl_ = __hold2.release();
4335 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4336 return __r;
4352 shared_ptr<_Tp> __r;
4353 __r.__ptr_ = __hold2.get()->get();
4354 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4355 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4356 return __r;
4372 shared_ptr<_Tp> __r;
4373 __r.__ptr_ = __hold2.get()->get();
4374 __r.__cntrl_ = __hold2.release();
4375 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4376 return __r;
4391 shared_ptr<_Tp> __r;
4392 __r.__ptr_ = __hold2.get()->get();
4393 __r.__cntrl_ = __hold2.release();
4394 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4395 return __r;
4410 shared_ptr<_Tp> __r;
4411 __r.__ptr_ = __hold2.get()->get();
4412 __r.__cntrl_ = __hold2.release();
4413 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4414 return __r;
4429 shared_ptr<_Tp> __r;
4430 __r.__ptr_ = __hold2.get()->get();
4431 __r.__cntrl_ = __hold2.release();
4432 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4433 return __r;
4449 shared_ptr<_Tp> __r;
4450 __r.__ptr_ = __hold2.get()->get();
4451 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4452 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4453 return __r;
4469 shared_ptr<_Tp> __r;
4470 __r.__ptr_ = __hold2.get()->get();
4471 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4472 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4473 return __r;
4489 shared_ptr<_Tp> __r;
4490 __r.__ptr_ = __hold2.get()->get();
4491 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4492 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4493 return __r;
4509 shared_ptr<_Tp> __r;
4510 __r.__ptr_ = __hold2.get()->get();
4511 __r.__cntrl_ = _VSTD::addressof(*__hold2.release());
4512 __r.__enable_weak_this(__r.__ptr_, __r.__ptr_);
4513 return __r;
4528 shared_ptr<_Tp>::operator=(const shared_ptr& __r) _NOEXCEPT
4530 shared_ptr(__r).swap(*this);
4542 shared_ptr<_Tp>::operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT
4544 shared_ptr(__r).swap(*this);
4553 shared_ptr<_Tp>::operator=(shared_ptr&& __r) _NOEXCEPT
4555 shared_ptr(_VSTD::move(__r)).swap(*this);
4567 shared_ptr<_Tp>::operator=(shared_ptr<_Yp>&& __r)
4569 shared_ptr(_VSTD::move(__r)).swap(*this);
4583 shared_ptr<_Tp>::operator=(auto_ptr<_Yp>&& __r)
4585 shared_ptr(_VSTD::move(__r)).swap(*this);
4600 shared_ptr<_Tp>::operator=(unique_ptr<_Yp, _Dp>&& __r)
4602 shared_ptr(_VSTD::move(__r)).swap(*this);
4618 shared_ptr<_Tp>::operator=(auto_ptr<_Yp> __r)
4620 shared_ptr(__r).swap(*this);
4635 shared_ptr<_Tp>::operator=(unique_ptr<_Yp, _Dp> __r)
4637 shared_ptr(_VSTD::move(__r)).swap(*this);
4646 shared_ptr<_Tp>::swap(shared_ptr& __r) _NOEXCEPT
4648 _VSTD::swap(__ptr_, __r.__ptr_);
4649 _VSTD::swap(__cntrl_, __r.__cntrl_);
4958 static_pointer_cast(const shared_ptr<_Up>& __r) _NOEXCEPT
4960 return shared_ptr<_Tp>(__r, static_cast<_Tp*>(__r.get()));
4970 dynamic_pointer_cast(const shared_ptr<_Up>& __r) _NOEXCEPT
4972 _Tp* __p = dynamic_cast<_Tp*>(__r.get());
4973 return __p ? shared_ptr<_Tp>(__r, __p) : shared_ptr<_Tp>();
4982 const_pointer_cast(const shared_ptr<_Up>& __r) _NOEXCEPT
4985 return shared_ptr<_Tp>(__r, const_cast<_RTp*>(__r.get()));
5012 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Yp> const& __r,
5016 weak_ptr(weak_ptr const& __r) _NOEXCEPT;
5017 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp> const& __r,
5023 weak_ptr(weak_ptr&& __r) _NOEXCEPT;
5024 template<class _Yp> _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r,
5031 weak_ptr& operator=(weak_ptr const& __r) _NOEXCEPT;
5039 operator=(weak_ptr<_Yp> const& __r) _NOEXCEPT;
5044 weak_ptr& operator=(weak_ptr&& __r) _NOEXCEPT;
5052 operator=(weak_ptr<_Yp>&& __r) _NOEXCEPT;
5063 operator=(shared_ptr<_Yp> const& __r) _NOEXCEPT;
5066 void swap(weak_ptr& __r) _NOEXCEPT;
5079 bool owner_before(const shared_ptr<_Up>& __r) const _NOEXCEPT
5080 {return __cntrl_ < __r.__cntrl_;}
5083 bool owner_before(const weak_ptr<_Up>& __r) const _NOEXCEPT
5084 {return __cntrl_ < __r.__cntrl_;}
5101 weak_ptr<_Tp>::weak_ptr(weak_ptr const& __r) _NOEXCEPT
5102 : __ptr_(__r.__ptr_),
5103 __cntrl_(__r.__cntrl_)
5112 weak_ptr<_Tp>::weak_ptr(shared_ptr<_Yp> const& __r,
5115 : __ptr_(__r.__ptr_),
5116 __cntrl_(__r.__cntrl_)
5125 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp> const& __r,
5128 : __ptr_(__r.__ptr_),
5129 __cntrl_(__r.__cntrl_)
5139 weak_ptr<_Tp>::weak_ptr(weak_ptr&& __r) _NOEXCEPT
5140 : __ptr_(__r.__ptr_),
5141 __cntrl_(__r.__cntrl_)
5143 __r.__ptr_ = 0;
5144 __r.__cntrl_ = 0;
5150 weak_ptr<_Tp>::weak_ptr(weak_ptr<_Yp>&& __r,
5153 : __ptr_(__r.__ptr_),
5154 __cntrl_(__r.__cntrl_)
5156 __r.__ptr_ = 0;
5157 __r.__cntrl_ = 0;
5172 weak_ptr<_Tp>::operator=(weak_ptr const& __r) _NOEXCEPT
5174 weak_ptr(__r).swap(*this);
5186 weak_ptr<_Tp>::operator=(weak_ptr<_Yp> const& __r) _NOEXCEPT
5188 weak_ptr(__r).swap(*this);
5197 weak_ptr<_Tp>::operator=(weak_ptr&& __r) _NOEXCEPT
5199 weak_ptr(_VSTD::move(__r)).swap(*this);
5211 weak_ptr<_Tp>::operator=(weak_ptr<_Yp>&& __r) _NOEXCEPT
5213 weak_ptr(_VSTD::move(__r)).swap(*this);
5227 weak_ptr<_Tp>::operator=(shared_ptr<_Yp> const& __r) _NOEXCEPT
5229 weak_ptr(__r).swap(*this);
5236 weak_ptr<_Tp>::swap(weak_ptr& __r) _NOEXCEPT
5238 _VSTD::swap(__ptr_, __r.__ptr_);
5239 _VSTD::swap(__cntrl_, __r.__cntrl_);
5260 shared_ptr<_Tp>::shared_ptr(const weak_ptr<_Yp>& __r,
5262 : __ptr_(__r.__ptr_),
5263 __cntrl_(__r.__cntrl_ ? __r.__cntrl_->lock() : __r.__cntrl_)
5273 shared_ptr<_Tp> __r;
5274 __r.__cntrl_ = __cntrl_ ? __cntrl_->lock() : __cntrl_;
5275 if (__r.__cntrl_)
5276 __r.__ptr_ = __ptr_;
5277 return __r;
5448 atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r)
5452 __p->swap(__r);
5460 atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order)
5462 atomic_store(__p, __r);
5468 atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r)
5472 __p->swap(__r);
5474 return __r;
5481 atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order)
5483 return atomic_exchange(__p, __r);