mirror of
https://github.com/boostorg/smart_ptr.git
synced 2026-05-04 03:50:58 +02:00
weak_ptr::expired() added; weak_ptr documentation updated.
[SVN r13141]
This commit is contained in:
+2
-2
@@ -297,7 +297,7 @@ q = p;
|
||||
<pre>template<typename T>
|
||||
bool operator<(shared_ptr<T> const & a, shared_ptr<T> const & b); // never throws</pre>
|
||||
<blockquote>
|
||||
<p><b>Returns:</b> an implementation-defined value such that <code>operator<</code>
|
||||
<p><b>Returns:</b> an implementation-defined value such that <b>operator<</b>
|
||||
is a strict weak ordering as described in section 25.3 <code>[lib.alg.sorting]</code>
|
||||
of the C++ standard.</p>
|
||||
<p><b>Throws:</b> nothing.</p>
|
||||
@@ -343,7 +343,7 @@ q = p;
|
||||
<LI>
|
||||
Otherwise, a default-constructed <STRONG>shared_ptr<T></STRONG> object.</LI></UL>
|
||||
<P><B>Throws:</B> <STRONG>std::bad_alloc</STRONG>.</P>
|
||||
<P><B>Exception safety:</B> If an exception is thrown, the function has no
|
||||
<P><B>Exception safety:</B> If an exception is thrown, the function has no
|
||||
effect.</P>
|
||||
<P><B>Notes:</B> the seemingly equivalent expression</P>
|
||||
<P><CODE>shared_ptr<T>(dynamic_cast<T*>(r.get()))</CODE></P>
|
||||
|
||||
Reference in New Issue
Block a user