Compartir a través de


CStringElementTraits Class

This class provides static functions used by collection classes storing CString objects.

template<
   typename T 
>
class CStringElementTraits

Parameters

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

Remarks

This class provides static functions for copying, moving, and comparing strings and for creating a hash value. These functions are useful when using a collection class to store string-based data. Use CStringElementTraitsI when case-insensitive comparisons are required. Use CStringRefElementTraits when the string objects are to be dealt with as references.

For more information, see ATL Collection Classes.

Requirements

Header: cstringt.h

See Also

Concepts

CStringElementTraits Members

CElementTraitsBase Class

CStringElementTraitsI Class

ATL Class Overview