yapf/countedptr.hpp
changeset 4434 a08cb4b5c179
parent 3900 2c84ed52709d
child 4549 106ed18a7675
equal deleted inserted replaced
4433:98632ba2212a 4434:a08cb4b5c179
    72 
    72 
    73 	/** another way how to test for NULL value */
    73 	/** another way how to test for NULL value */
    74 	FORCEINLINE bool operator == (const CCountedPtr& sp) const {return m_pT == sp.m_pT;}
    74 	FORCEINLINE bool operator == (const CCountedPtr& sp) const {return m_pT == sp.m_pT;}
    75 
    75 
    76 	/** yet another way how to test for NULL value */
    76 	/** yet another way how to test for NULL value */
    77 	FORCEINLINE bool operator != (const CCountedPtr& sp) const	{return m_pT != sp.m_pT;}
    77 	FORCEINLINE bool operator != (const CCountedPtr& sp) const {return m_pT != sp.m_pT;}
    78 
    78 
    79 	/** assign pointer w/o incrementing ref count */
    79 	/** assign pointer w/o incrementing ref count */
    80 	FORCEINLINE void Attach(Tcls* pT) {Release(); m_pT = pT;}
    80 	FORCEINLINE void Attach(Tcls* pT) {Release(); m_pT = pT;}
    81 
    81 
    82 	/** detach pointer w/o decrementing ref count */
    82 	/** detach pointer w/o decrementing ref count */