64 if ( (--(
p->RefCount)) == 0 )
74 if (
p && (--(
p->RefCount)==0) )
86 if (
p && (--(
p->RefCount)==0) )
99 operator T*() {
return p; }
100 operator const T*()
const {
return p; }
104 if (
p && (--(
p->RefCount)==0) )
117 if (
p && (
p->RefCount > 1) )
RefCountedP(const RefCountedP< T > &pp)
RefCountedP & operator=(const RefCountedP &rhs)
RefCountedP< T > & CopyForWrite()
RefCountedP & operator=(T *pp)