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

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 30 12:56:01 PDT 2024


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

Not attached: Please add a benchmark to show that this actually improves performance.

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


More information about the libcxx-commits mailing list