libstdc++: Define std::lexicographical_compare_three_way for C++20
authorJonathan Wakely <jwakely@redhat.com>
Thu, 5 Dec 2019 12:46:50 +0000 (12:46 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 5 Dec 2019 12:46:50 +0000 (12:46 +0000)
commitf1355c8ddab619f0e5fae40cbdca33d468780b58
tree961dfd9f3bcd12e6cefd86477fda23cf144354bc
parent16e81d5193f6067be90abfa0cbcb15328ce16e2a
libstdc++: Define std::lexicographical_compare_three_way for C++20

* include/bits/stl_algobase.h (lexicographical_compare_three_way):
Define for C++20.
* testsuite/25_algorithms/lexicographical_compare_three_way/1.cc: New
test.
* testsuite/25_algorithms/lexicographical_compare_three_way/
constexpr.cc: New test.

From-SVN: r278996
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/testsuite/25_algorithms/lexicographical_compare_three_way/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/lexicographical_compare_three_way/constexpr.cc [new file with mode: 0644]