aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-02-21 12:02:15 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-02-21 17:12:39 +0000
commit9e58988061f4175896de11af0caf9bdd48c9b046 (patch)
tree324fbbc0975fb49b2901280792048f5d95aa90b7 /gcc
parent131fbdd7b750faecd7c874dc97adb01b53d073ea (diff)
downloadgcc-9e58988061f4175896de11af0caf9bdd48c9b046.zip
gcc-9e58988061f4175896de11af0caf9bdd48c9b046.tar.gz
gcc-9e58988061f4175896de11af0caf9bdd48c9b046.tar.bz2
libstdc++: Define <=> for tuple, optional and variant
Another piece of P1614R2. * include/std/optional (operator<=>(optional<T>, optional<U>)) (operator<=>(optional<T>, nullopt), operator<=>(optional<T>, U)): Define for C++20. * include/std/tuple (__tuple_cmp): New helper function for <=>. (operator<=>(tuple<T...>, tuple<U>...)): Define for C++20. * include/std/variant (operator<=>(variant<T...>, variant<T...>)) (operator<=>(monostate, monostate)): Define for C++20. * testsuite/20_util/optional/relops/three_way.cc: New test. * testsuite/20_util/tuple/comparison_operators/three_way.cc: New test. * testsuite/20_util/variant/89851.cc: Move to ... * testsuite/20_util/variant/relops/89851.cc: ... here. * testsuite/20_util/variant/90008.cc: Move to ... * testsuite/20_util/variant/relops/90008.cc: ... here. * testsuite/20_util/variant/relops/three_way.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions