forked from boostorg/smart_ptr
Minor tweaks.
[SVN r12684]
This commit is contained in:
+1
-3
@@ -90,9 +90,7 @@ If an exception is thrown, the constructor has no effect.</p>
|
||||
<pre>template<typename Y> weak_ptr</a>(shared_ptr<Y> const & r); // never throws</pre>
|
||||
<p>Constructs a <b>weak_ptr</b>, as if by storing a copy of the pointer stored in <b>r</b>.
|
||||
Afterwards, the <a href="#use_count">use count</a> for all copies is unchanged.
|
||||
When the last <b>shared_ptr</b> is destroyed, the use count and stored pointer become 0.
|
||||
The only exception which may be thrown by this constructor is <b>std::bad_alloc</b>.
|
||||
If an exception is thrown, the constructor has no effect.</p>
|
||||
When the last <b>shared_ptr</b> is destroyed, the use count and stored pointer become 0.</p>
|
||||
|
||||
<pre>weak_ptr(weak_ptr const & r); // never throws
|
||||
template<typename Y> weak_ptr(weak_ptr<Y> const & r); // never throws</pre>
|
||||
|
||||
Reference in New Issue
Block a user