From 89435a6287ac8d157dc08ef38b33865073e1b355 Mon Sep 17 00:00:00 2001
From: Peter Dimov The rest of the comparison operators are omitted by design.] Effects: Equivalent to Throws: nothing. [swap is defined in the same namespace as shared_ptr
as this is currently the only legal way to supply a swap function
that has a chance to be used by the standard library.] Returns: Throws: nothing. Notes: Provided as an aid to generic programming. Used by
+ mem_fn.swap
template<typename T>
- void swap(shared_ptr<T> & a, shared_ptr<T> & b) // never throws
+ void swap(shared_ptr<T> & a, shared_ptr<T> & b); // never throws
a.swap(b)
.get_pointer
+ template<typename T>
+ T * get_pointer(shared_ptr<T> const & p); // never throws
+
+
p.get()
.shared_static_cast
template<typename T, typename U>
shared_ptr<T> shared_static_cast(shared_ptr<U> const & r); // never throws
@@ -634,7 +645,7 @@ int * p = a.release();
implementation or a linked list implementation, or some other specific
implementation. This is not the intent.
Revised +
Revised 23 July 2002
Copyright 1999 Greg Colvin and Beman Dawes. Copyright 2002 Darin Adler. Copyright 2002 Peter Dimov. Permission to copy, use, modify, sell and