CHeapPtrElementTraits Class

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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

System_CAPS_ICON_important.jpg Important

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

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

Parameters

T
The object type to be stored in the collection class.

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

Public Typedefs

NameDescription
CHeapPtrElementTraits::INARGTYPEThe data type to use for adding elements to the collection class object.
CHeapPtrElementTraits::OUTARGTYPEThe 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.

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CHeapPtrElementTraits

Header: atlcoll.h

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

typedef CHeapPtr<T, Allocator>& INARGTYPE;

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

typedef T *& OUTARGTYPE;

CDefaultElementTraits Class
CComHeapPtr Class
Class Overview

Show: