4 // An enhanced relative of scoped_ptr with reference counted copy semantics.
5 // The object pointed to is deleted when the last shared_ptr pointing to it
6 // is destroyed or reset.
10 // This is highly hacked up version of boost::shared_ptr
11 // We just need enough to get SWIG to "do the right thing" and
12 // generate "Smart Pointer" code.
17 template<class T> class shared_ptr
30 T * operator-> () // never throws
38 T * px; // contained pointer