CPrimitiveElementTraits Class

 

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

For the latest documentation on Visual Studio 2017, see CPrimitiveElementTraits Class on docs.microsoft.com. This class provides default methods and functions for a collection class composed of primitive data types.

template <typename T>  
class CPrimitiveElementTraits : public CDefaultElementTraits<T>

Parameters

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

Public Typedefs

NameDescription
CPrimitiveElementTraits::INARGTYPEThe data type to use for adding elements to the collection class object.
CPrimitiveElementTraits::OUTARGTYPEThe data type to use for retrieving elements from the collection class object.

This class provides default static functions and methods for moving, copying, comparing, and hashing primitive data type elements stored in a collection class object.

For more information, see ATL Collection Classes.

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CPrimitiveElementTraits

Header: atlcoll.h

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

typedef T INARGTYPE;

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

typedef T& OUTARGTYPE;

CDefaultElementTraits Class
Class Overview

Show: