[libcxx-commits] [libcxx] [libc++] P2944R3: Constrained comparisions - `variant` and `tuple` (PR #141396)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 24 01:39:09 PDT 2025
================
@@ -1153,9 +1154,16 @@ struct __tuple_equal<0> {
};
template <class... _Tp, class... _Up>
+# if _LIBCPP_STD_VER >= 26
+ requires(requires(const _Tp& __t, const _Up& __u) {
+ { __t == __u } -> __boolean_testable;
+ } && ...) && (sizeof...(_Tp) == sizeof...(_Up))
----------------
Zingam wrote:
OK. In that case. I'll split tuple in a separate patch.
https://github.com/llvm/llvm-project/pull/141396
More information about the libcxx-commits
mailing list