Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CElementTraits Class

This class is used by collection classes to provide methods and functions for moving, copying, comparison, and hashing operations.

   typename T 
class CElementTraits : public CDefaultElementTraits< T >

The type of data to be stored in the collection.

This class provides default static functions and methods for moving, copying, comparing, and hashing elements stored in a collection class object. CElementTraits is specified as the default provider of these operations by the collection classes CAtlArray, CAtlList, CRBMap, CRBMultiMap, and CRBTree.

The default implementations will suffice for simple data types, but if the collection classes are used to store more complex objects, the functions and methods must be overridden by user-supplied implementations.

For more information, see ATL Collection Classes.

Header: atlcoll.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.