[libcxx-commits] [PATCH] D108393: [libc++] Include <__iterator/distance.h> instead of <iterator> in a few algorithm headers

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 20 12:02:53 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9807626bc721: [libc++] Include <__iterator/distance.h> instead of <iterator> in a few… (authored by joe_loser, committed by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108393/new/

https://reviews.llvm.org/D108393

Files:
  libcxx/include/__algorithm/equal.h
  libcxx/include/__algorithm/is_permutation.h


Index: libcxx/include/__algorithm/is_permutation.h
===================================================================
--- libcxx/include/__algorithm/is_permutation.h
+++ libcxx/include/__algorithm/is_permutation.h
@@ -12,9 +12,10 @@
 
 #include <__algorithm/comp.h>
 #include <__config>
+#include <__iterator/distance.h>
 #include <__iterator/iterator_traits.h>
 #include <__iterator/next.h>
-#include <iterator> // FIXME: replace with <__iterator/distance.h> when it lands
+#include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header
Index: libcxx/include/__algorithm/equal.h
===================================================================
--- libcxx/include/__algorithm/equal.h
+++ libcxx/include/__algorithm/equal.h
@@ -12,8 +12,9 @@
 
 #include <__config>
 #include <__algorithm/comp.h>
+#include <__iterator/distance.h>
 #include <__iterator/iterator_traits.h>
-#include <iterator> // FIXME: replace with <__iterator/distance.h> when it lands
+#include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #pragma GCC system_header


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108393.367855.patch
Type: text/x-patch
Size: 1100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210820/0243e70e/attachment.bin>


More information about the libcxx-commits mailing list