cpp/experimental/basic string view/operator cmp

Compares two views.

All comparisons are done via the compare member function (which itself is defined in terms of ):


 * Two views are equal if both the size of and  are equal and each character in  has an equivalent character in  at the same position.


 * The ordering comparisons are done lexicographically -- the comparison is performed by a function equivalent to std.

The implementation shall provide sufficient additional and  overloads of these functions so that a  object  may be compared to another object  with an implicit conversion to, with semantics identical to comparing  and.

Return value
if the corresponding comparison holds, otherwise.

Complexity
Linear in the size of the views.