1 // Pointer.h: interface for the Pointer class.
3 //////////////////////////////////////////////////////////////////////
21 Pointer( T* p_ = NULL ) : p( p_ )
27 GC::SetTotalBytesAllocated( GC::GetTotalBytesAllocated() - sizeof( *p ) );
29 p->~T(); // Explicitely call the destructor
35 Pointer& operator = ( Pointer<T>& p_ )
37 return operator = ( ( T* ) p_);
40 Pointer& operator = ( T* p_ )
62 // For automatic type conversion during new call
65 return ( void** ) & p;