Defined in header
|(2)|| (since C++17)
|(3)|| (since C++17)
|(4)|| (since C++17)
|(5)|| (since C++17)
|(6)|| (since C++17)
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
rhsare equal and each character in
lhshas an equivalent character in
rhsat the same position.
- The ordering comparisons are done lexicographically -- the comparison is performed by a function equivalent to std::lexicographical_compare.
The return type of three-way comparison operator (/*comp-cat*/) is Traits::comparison_category if it exists, std::weak_ordering otherwise.
The implementation shall provide sufficient additional
noexcept overloads of these functions so that a
sv may be compared to another object
t with an implicit conversion to
basic_string_view<CharT,Traits>, with semantics identical to comparing
|lhs, rhs||-||views to compare|
 Return value
Sufficient additional overloads can be implemented through non-deduced context in one parameter type.
Linear in the size of the views.