Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 2.2 KB

cprimitiveelementtraits-class.md

File metadata and controls

75 lines (48 loc) · 2.2 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CPrimitiveElementTraits Class
CPrimitiveElementTraits Class
11/04/2016
CPrimitiveElementTraits
ATLCOLL/ATL::CPrimitiveElementTraits
ATLCOLL/ATL::CPrimitiveElementTraits::INARGTYPE
ATLCOLL/ATL::CPrimitiveElementTraits::OUTARGTYPE
CPrimitiveElementTraits class
21c1cea8-2c5a-486c-b65c-85490f3ed4e6

CPrimitiveElementTraits Class

This class provides default methods and functions for a collection class composed of primitive data types.

Syntax

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

Parameters

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

Members

Public Typedefs

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

Remarks

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.

Inheritance Hierarchy

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

CPrimitiveElementTraits

Requirements

Header: atlcoll.h

CPrimitiveElementTraits::INARGTYPE

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

typedef T INARGTYPE;

CPrimitiveElementTraits::OUTARGTYPE

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

typedef T& OUTARGTYPE;

See also

CDefaultElementTraits Class
Class Overview