Partilhar via


CHeapPtrElementTraits Class

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

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.

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.

Requirements

Header: atlcoll.h

See Also

Reference

CDefaultElementTraits Class

CComHeapPtr Class

Other Resources

CHeapPtrElementTraits Members

ATL Class Overview