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

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 11 05:13:18 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 =
----------------
philnik777 wrote:

concepts take pretty much exactly the same time as variables. You should investigate further whether there is a problem in the compiler or something. I doubt it though.

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


More information about the libcxx-commits mailing list