Поделиться через


CHeapPtr Class

A smart pointer class for managing heap pointers.

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

Параметры

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

  • Allocator
    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

См. также

Основные понятия

CHeapPtr Members

CHeapPtrBase Class

CCRTAllocator Class

ATL Class Overview