共用方式為


CStringRefElementTraits::CompareElementsOrdered

Call this static function to compare two string elements.

static int CompareElementsOrdered( 
   INARGTYPE str1, 
   INARGTYPE str2  
) throw( );

Parameters

  • str1
    The first string element.

  • str2
    The second string element.

Return Value

Zero if the strings are identical, < 0 if str1 is less than str2, or > 0 if str1 is greater than str2. The CStringT::Compare method is used to perform the comparisons.

Requirements

Header: atlcoll.h

See Also

Reference

CStringRefElementTraits Class

CStringRefElementTraits::CompareElements