cpp/string/char traits/compare

Compares the first characters of the character strings  and. The comparison is done lexicographically.

If is zero, strings are considered equal.

Return value
Negative value if is less than.

if is equal to.

Positive value if is greater than.

Exceptions
Throws nothing.

Complexity
Linear in.