The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CComHeapPtr Class

A smart pointer class for managing heap pointers.

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


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

© 2014 Microsoft