[libc++] [P1614] Implement std::compare_three_way.
Differential Revision: https://reviews.llvm.org/D110735
NOKEYCHECK=True
GitOrigin-RevId: 3df094d31eac753687c7963738bb847e6d3794e9
diff --git a/include/compare b/include/compare
index ca1f574..ddb8313 100644
--- a/include/compare
+++ b/include/compare
@@ -47,6 +47,9 @@
template<class T, class U = T>
using compare_three_way_result_t = typename compare_three_way_result<T, U>::type;
+ // [comparisons.three.way], class compare_three_way
+ struct compare_three_way; // C++20
+
// [cmp.alg], comparison algorithms
template<class T> constexpr strong_ordering strong_order(const T& a, const T& b);
template<class T> constexpr weak_ordering weak_order(const T& a, const T& b);
@@ -133,6 +136,7 @@
*/
#include <__compare/common_comparison_category.h>
+#include <__compare/compare_three_way.h>
#include <__compare/compare_three_way_result.h>
#include <__compare/is_eq.h>
#include <__compare/ordering.h>