[libcxx-commits] [libcxx] [libc++][IWYU] Remove `std::move` header in `std::for_each` (PR #164272)

Connector Switch via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 20 08:45:03 PDT 2025


https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/164272

None

>From 5af23174ae8e675a2642b49876c7bd85bb7cd2b2 Mon Sep 17 00:00:00 2001
From: c8ef <c8ef at outlook.com>
Date: Mon, 20 Oct 2025 23:44:26 +0800
Subject: [PATCH] [libc++][IWYU] Remove std::move header in std::for_each

---
 libcxx/include/__algorithm/for_each.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libcxx/include/__algorithm/for_each.h b/libcxx/include/__algorithm/for_each.h
index e31fcae83a332..c80195a83287f 100644
--- a/libcxx/include/__algorithm/for_each.h
+++ b/libcxx/include/__algorithm/for_each.h
@@ -16,7 +16,6 @@
 #include <__iterator/segmented_iterator.h>
 #include <__type_traits/enable_if.h>
 #include <__type_traits/invoke.h>
-#include <__utility/move.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header



More information about the libcxx-commits mailing list