libstdc++: Define operator<=> for std::stack and std::queue
authorJonathan Wakely <jwakely@redhat.com>
Sun, 19 Apr 2020 20:30:15 +0000 (21:30 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sun, 19 Apr 2020 20:30:15 +0000 (21:30 +0100)
commit717e91dbc44c6bf55a498f45f6045191ceb10a11
tree20be317df6715021af7050bc0386273ada12c113
parent7ab9c2430ffb13de8433aa7d654192b5d2b1e7a9
libstdc++: Define operator<=> for std::stack and std::queue

Some more C++20 changes from P1614R2, "The Mothership has Landed".

* include/bits/stl_queue.h (queue): Define operator<=> for C++20.
* include/bits/stl_stack.h (stack): Likewise.
* testsuite/23_containers/queue/cmp_c++20.cc: New test.
* testsuite/23_containers/stack/cmp_c++20.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_queue.h
libstdc++-v3/include/bits/stl_stack.h
libstdc++-v3/testsuite/23_containers/queue/cmp_c++20.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/stack/cmp_c++20.cc [new file with mode: 0644]