Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

CHeapPtrBase Class

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

template < 
   class T, 
   class Allocator = CCRTAllocator  
> class CHeapPtrBase
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.

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.

Header: atlcore.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.