forked from boostorg/smart_ptr
Another minor documentation fix.
[SVN r30224]
This commit is contained in:
@ -248,9 +248,8 @@ template<class Y> shared_ptr(shared_ptr<Y> const & r); // never
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
<pre>template<class Y> explicit shared_ptr(<A href="weak_ptr.htm" >weak_ptr</A><Y> const & r);</pre>
|
<pre>template<class Y> explicit shared_ptr(<A href="weak_ptr.htm" >weak_ptr</A><Y> const & r);</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><b>Effects:</b> If <b>r</b> is <EM>empty</EM>, constructs an <EM>empty</EM> <b>shared_ptr</b>;
|
<p><b>Effects:</b> Constructs a <b>shared_ptr</b> that <EM>shares ownership</EM> with
|
||||||
otherwise, constructs a <b>shared_ptr</b> that <EM>shares ownership</EM> with <b>r</b>
|
<b>r</b> and stores a copy of the pointer stored in <STRONG>r</STRONG>.</p>
|
||||||
and stores a copy of the pointer stored in <STRONG>r</STRONG>.</p>
|
|
||||||
<p><b>Postconditions:</b> <code>use_count() == r.use_count()</code>.</p>
|
<p><b>Postconditions:</b> <code>use_count() == r.use_count()</code>.</p>
|
||||||
<p><b>Throws:</b> <b>bad_weak_ptr</b> when <code>r.use_count() == 0</code>.</p>
|
<p><b>Throws:</b> <b>bad_weak_ptr</b> when <code>r.use_count() == 0</code>.</p>
|
||||||
<p><b>Exception safety:</b> If an exception is thrown, the constructor has no
|
<p><b>Exception safety:</b> If an exception is thrown, the constructor has no
|
||||||
|
Reference in New Issue
Block a user