From afc17037deeba03917c808419ae66bfc0ce3ee5e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 22 Jul 2005 23:40:53 +0000 Subject: [PATCH] Another minor documentation fix. [SVN r30224] --- shared_ptr.htm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shared_ptr.htm b/shared_ptr.htm index 1eaf661..5b7f47b 100644 --- a/shared_ptr.htm +++ b/shared_ptr.htm @@ -248,9 +248,8 @@ template<class Y> shared_ptr(shared_ptr<Y> const & r); // never
template<class Y> explicit shared_ptr(weak_ptr<Y> const & r);
-

Effects: If r is empty, constructs an empty shared_ptr; - otherwise, constructs a shared_ptr that shares ownership with r - and stores a copy of the pointer stored in r.

+

Effects: Constructs a shared_ptr that shares ownership with + r and stores a copy of the pointer stored in r.

Postconditions: use_count() == r.use_count().

Throws: bad_weak_ptr when r.use_count() == 0.

Exception safety: If an exception is thrown, the constructor has no