Home | History | Annotate | Download | only in bits

Lines Matching refs:__r

191        *          and shares ownership with @a __r.
192 * @param __r A %shared_ptr.
193 * @param __p A pointer that will remain valid while @a *__r is valid.
194 * @post get() == __p && use_count() == __r.use_count()
206 shared_ptr(const shared_ptr<_Tp1>& __r, _Tp* __p) noexcept
207 : __shared_ptr<_Tp>(__r, __p) { }
210 * @brief If @a __r is empty, constructs an empty %shared_ptr;
212 * with @a __r.
213 * @param __r A %shared_ptr.
214 * @post get() == __r.get() && use_count() == __r.use_count()
218 shared_ptr(const shared_ptr<_Tp1>& __r) noexcept
219 : __shared_ptr<_Tp>(__r) { }
222 * @brief Move-constructs a %shared_ptr instance from @a __r.
223 * @param __r A %shared_ptr rvalue.
224 * @post *this contains the old value of @a __r, @a __r is empty.
226 shared_ptr(shared_ptr&& __r) noexcept
227 : __shared_ptr<_Tp>(std::move(__r)) { }
230 * @brief Move-constructs a %shared_ptr instance from @a __r.
231 * @param __r A %shared_ptr rvalue.
232 * @post *this contains the old value of @a __r, @a __r is empty.
236 shared_ptr(shared_ptr<_Tp1>&& __r) noexcept
237 : __shared_ptr<_Tp>(std::move(__r)) { }
240 * @brief Constructs a %shared_ptr that shares ownership with @a __r
241 * and stores a copy of the pointer stored in @a __r.
242 * @param __r A weak_ptr.
243 * @post use_count() == __r.use_count()
244 * @throw bad_weak_ptr when __r.expired(),
248 explicit shared_ptr(const weak_ptr<_Tp1>& __r)
249 : __shared_ptr<_Tp>(__r) { }
253 shared_ptr(std::auto_ptr<_Tp1>&& __r);
257 shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
258 : __shared_ptr<_Tp>(std::move(__r)) { }
272 operator=(const shared_ptr<_Tp1>& __r) noexcept
274 this->__shared_ptr<_Tp>::operator=(__r);
281 operator=(std::auto_ptr<_Tp1>&& __r)
283 this->__shared_ptr<_Tp>::operator=(std::move(__r));
289 operator=(shared_ptr&& __r) noexcept
291 this->__shared_ptr<_Tp>::operator=(std::move(__r));
297 operator=(shared_ptr<_Tp1>&& __r) noexcept
299 this->__shared_ptr<_Tp>::operator=(std::move(__r));
305 operator=(std::unique_ptr<_Tp1, _Del>&& __r)
307 this->__shared_ptr<_Tp>::operator=(std::move(__r));
324 shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
325 : __shared_ptr<_Tp>(__r, std::nothrow) { }
443 static_pointer_cast(const shared_ptr<_Tp1>& __r) noexcept
444 { return shared_ptr<_Tp>(__r, static_cast<_Tp*>(__r.get())); }
448 const_pointer_cast(const shared_ptr<_Tp1>& __r) noexcept
449 { return shared_ptr<_Tp>(__r, const_cast<_Tp*>(__r.get())); }
453 dynamic_pointer_cast(const shared_ptr<_Tp1>& __r) noexcept
455 if (_Tp* __p = dynamic_cast<_Tp*>(__r.get()))
456 return shared_ptr<_Tp>(__r, __p);
475 weak_ptr(const weak_ptr<_Tp1>& __r) noexcept
476 : __weak_ptr<_Tp>(__r) { }
480 weak_ptr(const shared_ptr<_Tp1>& __r) noexcept
481 : __weak_ptr<_Tp>(__r) { }
485 operator=(const weak_ptr<_Tp1>& __r) noexcept
487 this->__weak_ptr<_Tp>::operator=(__r);
493 operator=(const shared_ptr<_Tp1>& __r) noexcept
495 this->__weak_ptr<_Tp>::operator=(__r);