CHeapPtr Class
Visual Studio 2012
A smart pointer class for managing heap pointers.
Important
|
|---|
|
This class and its members cannot be used in applications that execute in the Windows Runtime. |
template< typename T, class Allocator= CCRTAllocator > class CHeapPtr : public CHeapPtrBase< T, Allocator>
CHeapPtr is derived from CHeapPtrBase and by default uses the CRT routines (in CCRTAllocator) to allocate and free memory. The class CHeapPtrList may be used to construct a list of heap pointers. See also CComHeapPtr, which uses COM memory allocation routines.
Important