[libcxx-commits] [libcxx] 4120496 - [libc++][C++03] Cherry pick #164272 (#164447)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 21 20:14:01 PDT 2025


Author: Connector Switch
Date: 2025-10-22T11:13:57+08:00
New Revision: 41204960c089d45d5bfcece809ddac95f0726cc6

URL: https://github.com/llvm/llvm-project/commit/41204960c089d45d5bfcece809ddac95f0726cc6
DIFF: https://github.com/llvm/llvm-project/commit/41204960c089d45d5bfcece809ddac95f0726cc6.diff

LOG: [libc++][C++03] Cherry pick #164272 (#164447)

Added: 
    

Modified: 
    libcxx/include/__cxx03/__algorithm/for_each.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__cxx03/__algorithm/for_each.h b/libcxx/include/__cxx03/__algorithm/for_each.h
index d160a9eddc50b..1ffb0137c0af7 100644
--- a/libcxx/include/__cxx03/__algorithm/for_each.h
+++ b/libcxx/include/__cxx03/__algorithm/for_each.h
@@ -14,15 +14,11 @@
 #include <__cxx03/__config>
 #include <__cxx03/__iterator/segmented_iterator.h>
 #include <__cxx03/__type_traits/enable_if.h>
-#include <__cxx03/__utility/move.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header
 #endif
 
-_LIBCPP_PUSH_MACROS
-#include <__cxx03/__undef_macros>
-
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _InputIterator, class _Function>
@@ -34,6 +30,4 @@ _LIBCPP_HIDE_FROM_ABI _Function for_each(_InputIterator __first, _InputIterator
 
 _LIBCPP_END_NAMESPACE_STD
 
-_LIBCPP_POP_MACROS
-
 #endif // _LIBCPP___CXX03___ALGORITHM_FOR_EACH_H


        


More information about the libcxx-commits mailing list