Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CStringRefElementTraits Class
Collapse the table of content
Expand the table of content

CStringRefElementTraits Class

This class provides static functions related to strings stored in collection class objects. The string objects are dealt with as references.

   typename T 
class CStringRefElementTraits : public CElementTraitsBase< T >


The type of data to be stored in the collection.




Call this static function to compare two string elements for equality.


Call this static function to compare two string elements.


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. Unlike CStringElementTraits and CStringElementTraitsI, CStringRefElementTraits causes the CString arguments to be passed as const CString& references.

For more information, see ATL Collection Classes.

Header: atlcoll.h

© 2015 Microsoft