[libcxx-commits] [libcxx] [libc++] std::cmp_less and other integer comparison functions could be improved (PR #151332)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 11 04:39:28 PDT 2025


================
@@ -26,10 +26,18 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 #if _LIBCPP_STD_VER >= 20
 
+template <typename _Tp, typename _Ip>
+inline constexpr bool __comparison_can_promote_to =
----------------
kissholic wrote:

The `concept` version was submitted several times, but it always failed the check due to timeout. The `typename` version, otherwise, passed without a hitch. I guess that when `cmp.h` is directly or indirectly referenced by other files, instantiation of the concept may take too much time.

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


More information about the libcxx-commits mailing list