diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-11-13 16:26:18 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-11-13 16:26:18 +0000 |
commit | 0ff15d21c8602ad78129c0a6baab821c4090de71 (patch) | |
tree | b005ed160604bbf471c4acf6a754ffef95d9bc52 /gcc | |
parent | 5d46287769a5224d7d3495b54e64da25fc76f01a (diff) | |
download | gcc-0ff15d21c8602ad78129c0a6baab821c4090de71.zip gcc-0ff15d21c8602ad78129c0a6baab821c4090de71.tar.gz gcc-0ff15d21c8602ad78129c0a6baab821c4090de71.tar.bz2 |
libsupc++: Implement comparison algorithms for C++20
This is incomplete because std::strong_order doesn't support
floating-point types.
The partial_order and weak_order tests use VERIFY instead of
static_assert because of PR 92431.
* libsupc++/compare (strong_order, weak_order, partial_order)
(compare_strong_order_fallback, compare_weak_order_fallback)
(compare_partial_order_fallback): Define customization point objects
for C++20.
* testsuite/18_support/comparisons/algorithms/partial_order.cc: New
test.
* testsuite/18_support/comparisons/algorithms/strong_order.cc: New
test.
* testsuite/18_support/comparisons/algorithms/weak_order.cc: New test.
From-SVN: r278149
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions