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

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 2 08:10:16 PST 2025


================
@@ -0,0 +1,131 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <algorithm>
+
+// template<InputIterator Iter, class Function>
----------------
ldionne wrote:

Please add a plain english comment explaining what this is testing (i.e. how it's different from `ranges.for_each.pass.cpp`).

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


More information about the libcxx-commits mailing list