CHeapPtr Class
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

CHeapPtr Class

A smart pointer class for managing heap pointers.

   typename T, 
   class Allocator = CCRTAllocator 
> class CHeapPtr : 
   public CHeapPtrBase< T, Allocator >


The object type to be stored on the heap.


The memory allocation class to use.

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.

Header: atlcore.h

© 2016 Microsoft