llvm-project
e9280a1d - [libc++] Backport segmented iterator optimization for std::for_each to C++11 (#134960)

Commit
240 days ago
[libc++] Backport segmented iterator optimization for std::for_each to C++11 (#134960) Previously, the segmented iterator optimization for `std::for_each` was restricted to C++23 and later due to its dependency on `__movable_box`, which is not available in earlier standards. This patch eliminates that restriction, enabling consistent optimizations starting from C++11. By backporting this enhancement, we improve performance across older standards and create opportunities to extend similar optimizations to other algorithms by forwarding their calls to `std::for_each`.
Author
Parents
Loading