File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
libcxx/include/__algorithm Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11
11
#define _LIBCPP___ALGORITHM_FOR_EACH_H
12
12
13
13
#include < __algorithm/for_each_segment.h>
14
- #include < __algorithm/iterator_operations.h>
15
14
#include < __config>
16
15
#include < __iterator/segmented_iterator.h>
17
16
#include < __type_traits/enable_if.h>
Original file line number Diff line number Diff line change 11
11
12
12
#include < __algorithm/for_each.h>
13
13
#include < __algorithm/in_fun_result.h>
14
- #include < __algorithm/iterator_operations.h>
15
14
#include < __config>
16
15
#include < __functional/identity.h>
17
16
#include < __functional/invoke.h>
@@ -47,7 +46,7 @@ struct __for_each {
47
46
auto __n = __last - __first;
48
47
auto __end = __first + __n;
49
48
auto __f = [&](auto && __val) { std::invoke (__func, std::invoke (__proj, __val)); };
50
- std::__for_each<_RangeAlgPolicy> (__first, __end, __f);
49
+ std::__for_each (__first, __end, __f);
51
50
return {std::move (__end), std::move (__func)};
52
51
} else {
53
52
for (; __first != __last; ++__first)
Original file line number Diff line number Diff line change 11
11
12
12
#include < __algorithm/for_each.h>
13
13
#include < __algorithm/in_fun_result.h>
14
- #include < __algorithm/iterator_operations.h>
15
14
#include < __config>
16
15
#include < __functional/identity.h>
17
16
#include < __functional/invoke.h>
@@ -46,7 +45,7 @@ struct __for_each_n {
46
45
if constexpr (forward_iterator<_Iter>) {
47
46
auto __last = std::ranges::next (__first, __count);
48
47
auto __f = [&](auto && __val) { std::invoke (__func, std::invoke (__proj, __val)); };
49
- std::__for_each<_RangeAlgPolicy> (__first, __last, __f);
48
+ std::__for_each (__first, __last, __f);
50
49
return {std::move (__last), std::move (__func)};
51
50
} else {
52
51
while (__count-- > 0 ) {
You can’t perform that action at this time.
0 commit comments