Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CHeapPtrElementTraits Class
Collapse the table of content
Expand the table of content

CHeapPtrElementTraits Class

This class provides methods, static functions, and typedefs useful when creating collections of heap pointers.

Important note Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

typename T, 
class Allocator= ATL::CCRTAllocator 
class CHeapPtrElementTraits : public CDefaultElementTraits< 
ATL::CHeapPtr< T, Allocator> 


The object type to be stored in the collection class.


The memory allocation class to use. The default is CCRTAllocator.




The data type to use for adding elements to the collection class object.


The data type to use for retrieving elements from the collection class object.

This class provides methods, static functions, and typedefs for aiding the creation of collection class objects containing heap pointers. The class CHeapPtrList derives from CHeapPtrElementTraits.

For more information, see ATL Collection Classes.

Header: atlcoll.h

© 2015 Microsoft