[libcxx-commits] [libcxx] [libcxx] Added segmented iterator for count_if (PR #105888)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sun Sep 8 07:47:25 PDT 2024


================
@@ -10,26 +10,52 @@
 #ifndef _LIBCPP___ALGORITHM_COUNT_IF_H
 #define _LIBCPP___ALGORITHM_COUNT_IF_H
 
+#include <__algorithm/for_each.h>
----------------
philnik777 wrote:

I don't know whether `ranges::for_each` is optimized. If not, we should definitely do it.

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


More information about the libcxx-commits mailing list