[libcxx-commits] [libcxx] [libc++] Optimize std::min_element (PR #100616)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 27 08:25:43 PDT 2025
================
@@ -27,20 +28,115 @@ _LIBCPP_PUSH_MACROS
_LIBCPP_BEGIN_NAMESPACE_STD
+template <class _Iter, class _Sent, class = void>
+struct __ConstTimeDistance : false_type {};
----------------
ldionne wrote:
Let's rename this to `__has_constant_time_distance` and move it to `libcxx/include/__iterator/iterator_traits.h`. It can be useful elsewhere.
https://github.com/llvm/llvm-project/pull/100616
More information about the libcxx-commits
mailing list