From 758954a93f0ac047907ac58c4d3ea0a5df2580b1 Mon Sep 17 00:00:00 2001
From: Darin Adler
template<typename D> shared_array(T * p, D d);
Constructs a shared_array, storing a copy of p and of d. Afterwards, the use count is 1. -D's copy constructor must not throw. +D's copy constructor and destructor must not throw. When the the time comes to delete the array pointed to by p, the object d is used in the statement d(p). Invoking the object d with parameter p in this way must not throw. diff --git a/shared_ptr.htm b/shared_ptr.htm index fc6d0d6..7773c2b 100644 --- a/shared_ptr.htm +++ b/shared_ptr.htm @@ -118,7 +118,7 @@ If an exception is thrown, delete p is called.
template<typename D> shared_ptr(T * p, D d);
Constructs a shared_ptr, storing a copy of p and of d. Afterwards, the use count is 1. -D's copy constructor must not throw. +D's copy constructor and destructor must not throw. When the the time comes to delete the object pointed to by p, the object d is used in the statement d(p). Invoking the object d with parameter p in this way must not throw. diff --git a/weak_ptr.htm b/weak_ptr.htm index fb97eac..545195f 100644 --- a/weak_ptr.htm +++ b/weak_ptr.htm @@ -11,17 +11,6 @@
Introduction
-Synopsis
-Members
-Free Functions
-Example
-Handle/Body Idiom
-Frequently Asked Questions
-Smart Pointer Timings
The weak_ptr class template stores a pointer to an object that's already managed by a shared_ptr. When the object last shared_ptr to the object goes away and the object