[libcxx-commits] [libcxx] [libc++] Backport segmented iterator optimization for std::for_each to C++11 (PR #134960)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 11 06:16:29 PDT 2025


================
@@ -61,6 +61,9 @@ Improvements and New Features
 
 - Updated formatting library to Unicode 16.0.0.
 
+- The segmented iterator optimization for ``std::for_each``, previously available only in C++23 and later, has been
+  backported to C++11 to enable consistent optimization across standards.
----------------
philnik777 wrote:

```suggestion
- The segmented iterator optimization for ``std::for_each`` has been backported to C++11. Previously it was only available in C++23 and later.
```

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


More information about the libcxx-commits mailing list