33 #pragma warning(disable : 4284)
43 #pragma warning(disable : 4786)
147 if (!
_pObj->decRef())
238 return _pObj == pObj;
254 return _pObj != pObj;
int m_refCount
The reference counter.
const T * getRealPointer() const
bool operator>(T *pObj) const
SmartPtr & operator=(const SmartPtr< U > &ptr)
SmartPtr(const SmartPtr< U > &ptr)
bool operator!=(const SmartPtr &ptr) const
bool operator!=(T *pObj) const
SmartPtr(const SmartPtr &ptr)
bool operator==(T *pObj) const
bool operator<(const SmartPtr &ptr) const
SmartPtr & operator=(T *pObj)
T * _pObj
The real pointer, must derived IRefCount.
bool operator==(const SmartPtr &ptr) const
SmartPtr & operator=(const SmartPtr &ptr)
bool operator<(T *pObj) const
bool operator>(const SmartPtr &ptr) const