[libcxx-commits] [libcxx] [libc++] Optimize __tree::__find_equal (PR #155245)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 25 09:46:20 PDT 2025


================
@@ -702,6 +702,18 @@ public:
 #  endif
 };
 
+template <class _Key, class _CP, class _Compare>
+struct __three_way_comparator<__enable_specialization_if<__has_three_way_comparator_v<_Compare, _Key, _Key>,
+                                                         __map_value_compare<_Key, _CP, _Compare>>,
----------------
ldionne wrote:

I'd much rather use `__enable_if_t` here on the `void` argument of the template, it's more idiomatic (or at least more usual).

https://github.com/llvm/llvm-project/pull/155245


More information about the libcxx-commits mailing list