libstdc++: Add spaceship operator to std::type_index
authorJonathan Wakely <jwakely@redhat.com>
Wed, 15 Apr 2020 18:47:47 +0000 (19:47 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 15 Apr 2020 18:47:47 +0000 (19:47 +0100)
commit4714fd14afadbfdab0cc76a8b3fdf7a8161e0ebe
tree7275957c458d59dc97e0367bd8520be88b67ee9b
parent49795733fdcc3a804dab59b63f86d5ebe4541374
libstdc++: Add spaceship operator to std::type_index

Another C++20 change from P1614R2, "The Mothership has Landed".

* include/std/typeindex (operator<=>): Define for C++20.
* testsuite/20_util/typeindex/comparison_operators_c++20.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/typeindex
libstdc++-v3/testsuite/20_util/typeindex/comparison_operators_c++20.cc [new file with mode: 0644]