Export (0) Print
Expand All

CStringElementTraitsI Class

This class provides static functions related to strings stored in collection class objects. It is similar to CStringElementTraits, but performs case-insensitive comparisons.

template< 
   typename T, 
   class CharTraits = CDefaultCharTraits< T::XCHAR > 
> 
class CStringElementTraitsI : public CElementTraitsBase< T >

T

The type of data to be stored in the collection.

Name

Description

CStringElementTraitsI::INARGTYPE

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

CStringElementTraitsI::OUTARGTYPE

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

Name

Description

CStringElementTraitsI::CompareElements

Call this static function to compare two string elements for equality, ignoring differences in case.

CStringElementTraitsI::CompareElementsOrdered

Call this static function to compare two string elements, ignoring differences in case.

CStringElementTraitsI::Hash

Call this static function to calculate a hash value for the given string element.

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

For more information, see ATL Collection Classes.

Header: atlcoll.h

Show:
© 2014 Microsoft