Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.59 KB

cheapptrelementtraits-class.md

File metadata and controls

83 lines (54 loc) · 2.59 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CHeapPtrElementTraits Class
CHeapPtrElementTraits Class
11/04/2016
CHeapPtrElementTraits
ATLCOLL/ATL::CHeapPtrElementTraits
ATLCOLL/ATL::CHeapPtrElementTraits::INARGTYPE
ATLCOLL/ATL::CHeapPtrElementTraits::OUTARGTYPE
CHeapPtrElementTraits class
910e0e06-3c8b-4242-bf00-b57eb74fbc77

CHeapPtrElementTraits Class

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

Important

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

Syntax

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.

Members

Public Typedefs

Name Description
CHeapPtrElementTraits::INARGTYPE The data type to use for adding elements to the collection class object.
CHeapPtrElementTraits::OUTARGTYPE The data type to use for retrieving elements from the collection class object.

Remarks

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.

Inheritance Hierarchy

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CHeapPtrElementTraits

Requirements

Header: atlcoll.h

CHeapPtrElementTraits::INARGTYPE

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

typedef CHeapPtr<T, Allocator>& INARGTYPE;

CHeapPtrElementTraits::OUTARGTYPE

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

typedef T *& OUTARGTYPE;

See also

CDefaultElementTraits Class
CComHeapPtr Class
Class Overview