[NFC][libc++] Moves transitive includes location.
As discussed in D132284 they will be moved to the end.
Reviewed By: #libc, Mordante
Differential Revision: https://reviews.llvm.org/D133212
NOKEYCHECK=True
GitOrigin-RevId: e31c2a1b1a643861f25ba0145cb4701c999fc6c2
diff --git a/include/regex b/include/regex
index 3899892..95a211f 100644
--- a/include/regex
+++ b/include/regex
@@ -778,11 +778,6 @@
#include <vector>
#include <version>
-#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
-# include <iterator>
-# include <utility>
-#endif
-
// standard-mandated includes
// [iterator.range]
@@ -6844,4 +6839,9 @@
_LIBCPP_POP_MACROS
+#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
+# include <iterator>
+# include <utility>
+#endif
+
#endif // _LIBCPP_REGEX