From 758954a93f0ac047907ac58c4d3ea0a5df2580b1 Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Sun, 3 Feb 2002 17:46:08 +0000 Subject: [PATCH] Documentation updates. [SVN r12675] --- shared_array.htm | 2 +- shared_ptr.htm | 2 +- weak_ptr.htm | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/shared_array.htm b/shared_array.htm index 8d21823..2b818e7 100644 --- a/shared_array.htm +++ b/shared_array.htm @@ -97,7 +97,7 @@ If an exception is thrown, delete[] p is called.

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 @@

c++boost.gif (8819 bytes)weak_ptr class template

-

Introduction
-Synopsis
-Members
-Free Functions
-Example
-Handle/Body Idiom
-Frequently Asked Questions
-Smart Pointer Timings

- -

Introduction

-

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