[libcxx-commits] [libcxx] WIP [libc++]P2944R3: Constrained comparisions - `variant` and `tuple` (PR #141396)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 3 20:54:15 PDT 2025
================
@@ -1161,9 +1161,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;
----------------
frederick-vs-ja wrote:
We probably need to include `<__concepts/boolean_testable.h>` for this.
https://github.com/llvm/llvm-project/pull/141396
More information about the libcxx-commits
mailing list