[libcxx-commits] [PATCH] D105585: [libcxx][nfc] Remove <algorithm>'s dependence on <iterator> and related changes.

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 7 12:48:51 PDT 2021


zoecarver created this revision.
zoecarver added reviewers: Quuxplusone, ldionne, cjdb.
Herald added subscribers: wenlei, mgorny.
zoecarver requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This removes a few dependencies on <iterator> which removes the dependency cycle between `iterator -> variant -> array -> iterator` and `iterator -> algorithm -> iterator` and `iterator -> memory -> algorithm -> iterator` so that we can use variant in common_iterator.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105585

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__algorithm/equal.h
  libcxx/include/__algorithm/equal_range.h
  libcxx/include/__algorithm/inplace_merge.h
  libcxx/include/__algorithm/is_permutation.h
  libcxx/include/__algorithm/lower_bound.h
  libcxx/include/__algorithm/partition_point.h
  libcxx/include/__algorithm/rotate.h
  libcxx/include/__algorithm/rotate_copy.h
  libcxx/include/__algorithm/sample.h
  libcxx/include/__algorithm/sort.h
  libcxx/include/__algorithm/stable_partition.h
  libcxx/include/__algorithm/stable_sort.h
  libcxx/include/__algorithm/unwrap_iter.h
  libcxx/include/__algorithm/upper_bound.h
  libcxx/include/__functional/function.h
  libcxx/include/__iterator/distance.h
  libcxx/include/__memory/builtin_new_allocator.h
  libcxx/include/__memory/destruct_n.h
  libcxx/include/__split_buffer
  libcxx/include/algorithm
  libcxx/include/array
  libcxx/include/functional
  libcxx/include/iterator
  libcxx/include/memory
  libcxx/include/valarray
  libcxx/include/vector

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105585.357054.patch
Type: text/x-patch
Size: 22426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210707/160dac0d/attachment-0001.bin>


More information about the libcxx-commits mailing list