[libcxx-commits] [libcxx] [libcxx] Optimize `ranges::fold_left_with_iter` for segmented iterators (PR #177853)

Connector Switch via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 2 07:21:36 PST 2026


================
@@ -38,11 +38,13 @@ What's New in Libc++ 23.0.0?
 Implemented Papers
 ------------------
 
-- P2440R1 (partial): ``ranges::iota`` and ``ranges::shift_left`` are supported (`Github <https://llvm.org/PR105184>`__)
-
 Improvements and New Features
 -----------------------------
 
+- The ``std::ranges::fold_left_with_iter`` algorithm has been optimized for
+  segmented iterators, resulting in a performance improvement for
+  ``std::deque<int>`` iterators.
----------------
c8ef wrote:

Done in https://github.com/llvm/llvm-project/pull/177853/commits/8fb997795da2e9e00ae940f57b7851e5977c21e7.

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


More information about the libcxx-commits mailing list