다음을 통해 공유


CStringElementTraits::CompareElementsOrdered

Call this static function to compare two string elements.

static int CompareElementsOrdered( 
   INARGTYPE str1, 
   INARGTYPE str2  
);

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: cstringt.h

See Also

Reference

CStringElementTraits Class

CStringElementTraits::CompareElements

CStringElementTraitsI::CompareElementsOrdered