Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CComHeapPtr Class
Collapse the table of content
Expand the table of content

CComHeapPtr Class

A smart pointer class for managing heap pointers.

template< 
   typename T 
> class CComHeapPtr : 
   public CHeapPtr< T, CComAllocator >

T

The object type to be stored on the heap.

CComHeapPtr derives from CHeapPtr, but uses CComAllocator to allocate memory using COM routines. See CHeapPtr and CHeapPtrBase for the methods available.

Header: atlbase.h

Show:
© 2015 Microsoft