Share via


CComHeapPtr Class

A smart pointer class for managing heap pointers.

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

Parameters

  • T
    The object type to be stored on the heap.

Remarks

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

Requirements

Header: atlbase.h

See Also

Reference

CHeapPtr Class

CHeapPtrBase Class

CComAllocator Class

Other Resources

CComHeapPtr Members

ATL Class Overview