次の方法で共有


CDefaultElementTraits Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CDefaultElementTraits Class.

This class provides default methods and functions for a collection class.

Syntax

template<typename T>  
class CDefaultElementTraits : public CElementTraitsBase<T>,
    public CDefaultHashTraits<T>,
    public CDefaultCompareTraits<T>

Parameters

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

Remarks

This class provides default static functions and methods for moving, copying, comparing, and hashing elements stored in a collection class object. This class derives its functions and methods from CElementTraitsBase, CDefaultHashTraits, and CDefaultCompareTraits, and is utilized by CElementTraits, CPrimitiveElementTraits, and CHeapPtrElementTraits.

For more information, see ATL Collection Classes.

Requirements

Header: atlcoll.h

See Also

Class Overview