template<class Y> explicit shared_ptr(Y* p);
[…]
-4- Effects: Constructs ashared_ptr
object that owns the pointerp
. If an exception is thrown,delete p
is called. […] -7- Exception safety: If an exception is thrown,delete p
is called.
template <class Y, class D> shared_ptr(Y* p, D d); template <class Y, class D, class A> shared_ptr(Y* p, D d, A a); template <class D> shared_ptr(nullptr_t p, D d); template <class D, class A> shared_ptr(nullptr_t p, D d, A a);
[…][…]
-9- Effects: Constructs ashared_ptr
object that owns the objectp
and the deleterd
. The second and fourth constructors shall use a copy ofa
to allocate memory for internal use. If an exception is thrown,d(p)
is called. […] -12- Exception safety: If an exception is thrown,d(p)
is called.
template <class Y> explicit shared_ptr(const weak_ptr<Y>& r);
[…]
-24- Effects: Constructs ashared_ptr
object that shares ownership withr
and stores a copy of the pointer stored inr
. If an exception is thrown, the constructor has no effect. […] -27- Exception safety: If an exception is thrown, the constructor has no effect.
template <class Y, class D> shared_ptr(unique_ptr<Y, D>&& r);
[…]
-29- Effects: Equivalent toshared_ptr(r.release(), r.get_deleter())
whenD
is not a reference type, otherwiseshared_ptr(r.release(), ref(r.get_deleter()))
. If an exception is thrown, the constructor has no effect. -30- Exception safety: If an exception is thrown, the constructor has no effect.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4