diff --git a/smart_ptr.htm b/smart_ptr.htm index bec58f1..ddf5e39 100644 --- a/smart_ptr.htm +++ b/smart_ptr.htm @@ -24,7 +24,7 @@ responsible for deletion of the object when it is no longer needed.
The smart pointer library provides five smart pointer class templates:
scoped_ptr | <boost/scoped_ptr.hpp> | @@ -50,14 +50,19 @@<boost/weak_ptr.hpp> | Non-owning observers of an object owned by shared_ptr. |
intrusive_ptr | +<boost/intrusive_ptr.hpp> | +Shared ownership of objects with an embedded reference count. | +
These templates are designed to complement the std::auto_ptr template.
They are examples of the "resource acquisition is initialization" idiom described in Bjarne Stroustrup's "The C++ Programming Language", 3rd edition, Section 14.4, Resource Management.
-A test program, smart_ptr_test.cpp, is provided - to verify correct operation.
+A test program, smart_ptr_test.cpp, is + provided to verify correct operation.
A page on compatibility with older versions of the Boost smart pointer library describes some of the changes since earlier versions of the smart pointer implementation.
@@ -169,10 +174,7 @@ February, 1994. This paper includes an extensive discussion of weak pointers and an extensive bibliography.Revised - 15 January 2003
+$Date$
Copyright 1999 Greg Colvin and Beman Dawes. Copyright 2002 Darin Adler. Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided diff --git a/weak_ptr.htm b/weak_ptr.htm index 80fcb7a..e8dd32d 100644 --- a/weak_ptr.htm +++ b/weak_ptr.htm @@ -134,9 +134,9 @@ template<class Y> weak_ptr(weak_ptr<Y> const & r);
Throws: nothing.
weak_ptr & operator=(weak_ptr const & r); -template<class Y> weak_ptr & operator=(weak_ptr<Y> const & r); -template<class Y> weak_ptr & operator=(shared_ptr<Y> const & r);+
weak_ptr & operator=(weak_ptr const & r); +template<class Y> weak_ptr & operator=(weak_ptr<Y> const & r); +template<class Y> weak_ptr & operator=(shared_ptr<Y> const & r);
Effects: Equivalent to
weak_ptr(r).swap(*this)
.Throws: nothing.
@@ -238,10 +238,10 @@ public:
$Date$
Copyright 1999 Greg Colvin and Beman Dawes. Copyright 2002 Darin Adler. - Copyright 2002, 2003 Peter Dimov. Permission to copy, use, modify, sell and - distribute this document is granted provided this copyright notice appears in - all copies. This document is provided "as is" without express or implied - warranty, and with no claim as to its suitability for any purpose.
+ Copyright 2002, 2003 Peter Dimov. Permission to copy, use, modify, sell and + distribute this document is granted provided this copyright notice appears in + all copies. This document is provided "as is" without express or implied + warranty, and with no claim as to its suitability for any purpose.