Compares the first count characters of the character strings s1 and s2. The comparison is done lexicographically.
If count is zero, strings are considered equal.
See CharTraits for the general requirements on character traits for X::compare.
X::compare
Negative value if s1 is less than s2.
0 if s1 is equal to s2.
Positive value if s1 is greater than s2.
Linear in count.