[libcxx-commits] [libcxx] [libc++] Optimize heap operations (PR #159917)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Oct 1 04:48:23 PDT 2025
================
@@ -36,7 +36,7 @@ __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compar
using __diff_t = __iter_diff_t<_RandomAccessIterator>;
const __diff_t __n = __last - __first;
- static const bool __assume_both_children = is_arithmetic<__iter_value_type<_RandomAccessIterator> >::value;
+ constexpr bool __assume_both_children = is_arithmetic<__iter_value_type<_RandomAccessIterator> >::value;
----------------
nukyan wrote:
Already present in #160180.
https://github.com/llvm/llvm-project/pull/159917
More information about the libcxx-commits
mailing list