CHeapPtrBase Class
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

CHeapPtrBase Class

This class forms the basis for several smart heap pointer classes.

template <
   class T,
   class Allocator = CCRTAllocator 
> class CHeapPtrBase

Parameters

T
The object type to be stored on the heap.
Allocator
The memory allocation class to use. By default CRT routines are used to allocate and free memory.

Remarks

This class forms the basis for several smart heap pointer classes. The derived classes, for example, CHeapPtr and CComHeapPtr, add their own constructors and operators. See these classes for implementation examples.

Requirements

Header: atlcore.h

See Also

Class Members | CHeapPtr | CComHeapPtr | ATL Class Overview

Show:
© 2016 Microsoft