[libcxx-commits] [libcxx] [libc++] Optimize ranges::for_each for iterating over __trees (PR #164405)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 1 08:23:06 PST 2025


================
@@ -11,6 +11,7 @@
 #define _LIBCPP___ALGORITHM_FOR_EACH_H
 
 #include <__algorithm/for_each_segment.h>
+#include <__algorithm/specialized_algorithms.h>
----------------
ldionne wrote:

The commit title is wrong since you're also optimizing `std::for_each`.

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


More information about the libcxx-commits mailing list