Skip to content

Commit abf80b5

Browse files
authored
[libc++][IWYU] Remove std::move header in std::for_each (llvm#164272)
It seems this was accidentally included; there's no use of std::move in this header.
1 parent 550b62c commit abf80b5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

libcxx/include/__algorithm/for_each.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
#include <__iterator/segmented_iterator.h>
1717
#include <__type_traits/enable_if.h>
1818
#include <__type_traits/invoke.h>
19-
#include <__utility/move.h>
2019

2120
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2221
# pragma GCC system_header
2322
#endif
2423

25-
_LIBCPP_PUSH_MACROS
26-
#include <__undef_macros>
27-
2824
_LIBCPP_BEGIN_NAMESPACE_STD
2925

3026
template <class _InputIterator, class _Sent, class _Func, class _Proj>
@@ -60,6 +56,4 @@ for_each(_InputIterator __first, _InputIterator __last, _Func __f) {
6056

6157
_LIBCPP_END_NAMESPACE_STD
6258

63-
_LIBCPP_POP_MACROS
64-
6559
#endif // _LIBCPP___ALGORITHM_FOR_EACH_H

0 commit comments

Comments
 (0)