cpp/string/basic string view/compare

Compares two character sequences.

@1@ The length of the sequences to compare is the smaller of  and. The function compares the two views by calling, and returns a value according to the following table:

@2@ Equivalent to. @3@ Equivalent to. @4@ Equivalent to. @5@ Equivalent to. @6@ Equivalent to.

Return value
Negative value if this view is less than the other character sequence, zero if the both character sequences are equal, positive value if this view is greater than the other character sequence.

Complexity
1) Linear in the number of characters compared.