diff --git a/shared_array.htm b/shared_array.htm index 12c353e..6ecc911 100644 --- a/shared_array.htm +++ b/shared_array.htm @@ -54,10 +54,10 @@ pointed to. T must meet the smart pointer shared_array(shared_array const & r); // never throws - shared_array & operator=(shared_array const & r); // never throws + shared_array & operator=(shared_array const & r); // never throws - void reset(T * p = 0); // never throws - template<typename D> void reset(T * p, D d); // never throws + void reset(T * p = 0); + template<typename D> void reset(T * p, D d); T & operator[](std::ptrdiff_t i) const() const; // never throws T * get() const; // never throws diff --git a/shared_ptr.htm b/shared_ptr.htm index 0e9d426..3f4c366 100644 --- a/shared_ptr.htm +++ b/shared_ptr.htm @@ -71,8 +71,8 @@ function must be passed in, or the pointed-to object must have a trivial destruc template<typename Y> shared_ptr & operator=(shared_ptr<Y> const & r); // never throws template<typename Y> shared_ptr & operator=(std::auto_ptr<Y> & r); - void reset(T * p = 0); // never throws - template<typename D> void reset(T * p, D d); // never throws + void reset(T * p = 0); + template<typename D> void reset(T * p, D d); T & operator*() const; // never throws T * operator->() const; // never throws @@ -88,8 +88,8 @@ function must be passed in, or the pointed-to object must have a trivial destruc 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 - template<typename T, typename U> - 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 template<typename T> void swap(shared_ptr<T> & a, shared_ptr<T> & b); // never throws @@ -226,8 +226,8 @@ See the smart pointer 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 -template<typename T, typename U> - 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

Compares the stored pointers of the two smart pointers. T need not be a complete type. See the smart pointer diff --git a/weak_ptr.htm b/weak_ptr.htm index ccedf19..25ae561 100644 --- a/weak_ptr.htm +++ b/weak_ptr.htm @@ -47,7 +47,7 @@ pointed to. T must meet the smart pointer template<typename Y> weak_ptr & operator=(weak_ptr<Y> const & r); // never throws template<typename Y> weak_ptr & operator=(shared_ptr<Y> const & r); // never throws - void reset(); // never throws + void reset(); T & operator*() const; // never throws T * operator->() const; // never throws @@ -62,8 +62,8 @@ pointed to. T must meet the smart pointer 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 - template<typename T, typename U> - 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 template<typename T> void swap(weak_ptr<T> & a, weak_ptr<T> & b); // never throws @@ -174,8 +174,8 @@ See the smart pointer 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 -template<typename T, typename U> - 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

Compares the stored pointers of the two smart pointers. T need not be a complete type. See the smart pointer