yapf/countedptr.hpp
changeset 5094 6f4c15b49da0
parent 4549 106ed18a7675
equal deleted inserted replaced
5093:4585f8582d97 5094:6f4c15b49da0
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #ifndef COUNTEDPTR_HPP
     3 #ifndef COUNTEDPTR_HPP
     4 #define COUNTEDPTR_HPP
     4 #define COUNTEDPTR_HPP
     5 
     5 
       
     6 #if 0 // reenable when needed
     6 /** @file CCountedPtr - smart pointer implementation */
     7 /** @file CCountedPtr - smart pointer implementation */
     7 
     8 
     8 /** CCountedPtr - simple reference counting smart pointer.
     9 /** CCountedPtr - simple reference counting smart pointer.
     9  *
    10  *
    10  *     One of the standard ways how to maintain object's lifetime.
    11  *     One of the standard ways how to maintain object's lifetime.
    93 		m_pT = pT;                   // update m_pT to new value
    94 		m_pT = pT;                   // update m_pT to new value
    94 		if (pTold) pTold->Release(); // release old ptr if any
    95 		if (pTold) pTold->Release(); // release old ptr if any
    95 	}
    96 	}
    96 }
    97 }
    97 
    98 
    98 
    99 #endif /* 0 */
    99 #endif /* COUNTEDPTR_HPP */
   100 #endif /* COUNTEDPTR_HPP */