diff --git a/shared_array.htm b/shared_array.htm index 6ecc911..3319553 100644 --- a/shared_array.htm +++ b/shared_array.htm @@ -23,7 +23,7 @@ are supplied so that shared_array works with the standard library's associative containers.
Normally, a shared_array cannot correctly hold a pointer to a -dynamically allocated array. See shared_ptr +single dynamically allocated object. See shared_ptr for that usage.
Because the implementation uses reference counting, shared_array will not work @@ -69,11 +69,11 @@ pointed to. T must meet the smart pointer }; template<typename T> - bool operator==(shared_array<T> const & a, shared_array<T> const & b); // never throws + bool operator==(shared_array<T> const & a, shared_array<T> const & b); // never throws template<typename T> - bool operator!=(shared_array<T> const & a, shared_array<T> const & b); // never throws + bool operator!=(shared_array<T> const & a, shared_array<T> const & b); // never throws template<typename T> - bool operator<(shared_array<T> const & a, shared_array<T> const & b); // never throws + bool operator<(shared_array<T> const & a, shared_array<T> const & b); // never throws template<typename T> void swap(shared_array<T> & a, shared_array<T> & b); // never throws @@ -186,11 +186,11 @@ See the smart pointer
template<typename T> - bool operator==(shared_array<T> const & a, shared_array<T> const & b); // never throws + bool operator==(shared_array<T> const & a, shared_array<T> const & b); // never throws template<typename T> - bool operator!=(shared_array<T> const & a, shared_array<T> const & b); // never throws + bool operator!=(shared_array<T> const & a, shared_array<T> const & b); // never throws template<typename T> - bool operator<(shared_array<T> const & a, shared_array<T> const & b); // never throws+ bool operator<(shared_array<T> const & a, shared_array<T> const & b); // never throws
Compares the stored pointers of the two smart pointers. T need not be a complete type. See the smart pointer @@ -211,7 +211,7 @@ Provided as an aid to generic programming.
Revised 1 February 2002
+Revised 8 February 2002
Copyright 1999 Greg Colvin and Beman Dawes. Copyright 2002 Darin Adler. Permission to copy, use, modify, sell and distribute this document is granted diff --git a/shared_ptr.htm b/shared_ptr.htm index 3f4c366..0cc96f1 100644 --- a/shared_ptr.htm +++ b/shared_ptr.htm @@ -85,11 +85,11 @@ function must be passed in, or the pointed-to object must have a trivial destruc }; template<typename T, typename U> - bool operator==(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws + bool operator==(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws template<typename T, typename U> - bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws + bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws template<typename T> - bool operator<(shared_ptr<T> const & a, shared_ptr<T> const & b); // never throws + bool operator<(shared_ptr<T> const & a, shared_ptr<T> const & b); // never throws template<typename T> void swap(shared_ptr<T> & a, shared_ptr<T> & b); // never throws @@ -223,11 +223,11 @@ See the smart pointer
template<typename T, typename U> - bool operator==(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws + bool operator==(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws template<typename T, typename U> - bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws + bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b); // never throws template<typename T> - bool operator<(shared_ptr<T> const & a, shared_ptr<T> const & b); // never throws+ bool operator<(shared_ptr<T> const & a, shared_ptr<T> const & b); // never throws
Compares the stored pointers of the two smart pointers. T need not be a complete type. See the smart pointer @@ -363,7 +363,7 @@ This is not the intent.
Revised 1 February 2002
+Revised 8 February 2002
Copyright 1999 Greg Colvin and Beman Dawes. Copyright 2002 Darin Adler. Permission to copy, use, modify, sell and distribute this document is granted diff --git a/weak_ptr.htm b/weak_ptr.htm index 25ae561..9ef44d4 100644 --- a/weak_ptr.htm +++ b/weak_ptr.htm @@ -36,7 +36,7 @@ pointed to. T must meet the smart pointer public: typedef T element_type; - explicit weak_ptr(); + weak_ptr(); template<typename Y> weak_ptr(shared_ptr<Y> const & r); // never throws ~weak_ptr(); // never throws @@ -59,11 +59,11 @@ pointed to. T must meet the smart pointer }; template<typename T, typename U> - bool operator==(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws + bool operator==(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws template<typename T, typename U> - bool operator!=(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws + bool operator!=(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws template<typename T> - bool operator<(weak_ptr<T> const & a, weak_ptr<T> const & b); // never throws + bool operator<(weak_ptr<T> const & a, weak_ptr<T> const & b); // never throws template<typename T> void swap(weak_ptr<T> & a, weak_ptr<T> & b); // never throws @@ -171,11 +171,11 @@ See the smart pointer
template<typename T, typename U> - bool operator==(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws + bool operator==(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws template<typename T, typename U> - bool operator!=(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws + bool operator!=(weak_ptr<T> const & a, weak_ptr<U> const & b); // never throws template<typename T> - bool operator<(weak_ptr<T> const & a, weak_ptr<T> const & b); // never throws+ bool operator<(weak_ptr<T> const & a, weak_ptr<T> const & b); // never throws
Compares the stored pointers of the two smart pointers. T need not be a complete type. See the smart pointer @@ -227,7 +227,7 @@ The resulting smart pointer will share its use count with the original pointer.<
Revised 1 February 2002
+Revised 8 February 2002
Copyright 1999 Greg Colvin and Beman Dawes. Copyright 2002 Darin Adler. Permission to copy, use, modify, sell and distribute this document is granted