Skip to content

Commit a2ccdcf

Browse files
committed
Remove unused headers
1 parent d88aa32 commit a2ccdcf

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

libcxx/include/__algorithm/for_each.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <__config>
1515
#include <__iterator/segmented_iterator.h>
1616
#include <__type_traits/enable_if.h>
17-
#include <__utility/in_place.h>
18-
#include <__utility/move.h>
1917

2018
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2119
# pragma GCC system_header
@@ -35,13 +33,12 @@ template <class _SegmentedIterator,
3533
__enable_if_t<__is_segmented_iterator<_SegmentedIterator>::value, int> = 0>
3634
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void
3735
__for_each(_SegmentedIterator __first, _SegmentedIterator __last, _Function& __func) {
38-
using _Traits = __segmented_iterator_traits<_SegmentedIterator>;
39-
std::__for_each_segment(
40-
__first, __last, [&](typename _Traits::__local_iterator __lfirst, typename _Traits::__local_iterator __llast) {
41-
std::__for_each(__lfirst, __llast, __func);
42-
});
36+
using __local_iterator_t = typename __segmented_iterator_traits<_SegmentedIterator>::__local_iterator;
37+
std::__for_each_segment(__first, __last, [&](__local_iterator_t __lfirst, __local_iterator_t __llast) {
38+
std::__for_each(__lfirst, __llast, __func);
39+
});
4340
}
44-
#endif
41+
#endif // !_LIBCPP_CXX03_LANG
4542

4643
template <class _InputIterator, class _Function>
4744
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Function

0 commit comments

Comments
 (0)