libstdc++: Simplify std::string_view comparisons (LWG 3950)
commitf7251b7886c47cbd5c9ffb217eb9849f023f76da
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Nov 2023 19:18:57 +0000 (10 19:18 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 11 Nov 2023 00:41:09 +0000 (11 00:41 +0000)
treecd6a5fb2603c7d381dd5b0180d06c24545b34e94
parent7c02efd45f5e727ab8a1b397bce8817f4ab65954
libstdc++: Simplify std::string_view comparisons (LWG 3950)

LWG 3950 points out that the comparisons of std::basic_string_view can
be simplified to just a single overload of operator== and a single
overload of operator<=>. Those overloads work fine for homogeneous
comparisons of two string view objects.

libstdc++-v3/ChangeLog:

* include/std/string_view (operator==, operator<=>): Remove
redundant overloads (LWG 3950).
libstdc++-v3/include/std/string_view