[libcxx-commits] [PATCH] D115122: [libc++] [ranges] Implement views::take, views::drop, ranges::equal. [WIP, needs tests]

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Dec 5 12:06:23 PST 2021


Quuxplusone created this revision.
Quuxplusone added a project: libc++.
Herald added a subscriber: mgorny.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This is just something I whipped up in order to get some example Ranges code compiling with Clang/libc++.
If someone wants to commandeer it to get the tests written faster, that's cool with me.
There are a total of 6 commits here: refactor, [alg.req], ranges::distance, view::take, view::drop, ranges::equal. https://github.com/Quuxplusone/llvm-project/compare/09208a38def076224e14b3202a1fd07cbebbbe8e...ranges-take


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115122

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__algorithm/ranges_equal.h
  libcxx/include/__iterator/algorithm_concepts.h
  libcxx/include/__iterator/common_iterator.h
  libcxx/include/__iterator/concepts.h
  libcxx/include/__iterator/counted_iterator.h
  libcxx/include/__iterator/indirectly_copyable.h
  libcxx/include/__iterator/indirectly_movable.h
  libcxx/include/__iterator/indirectly_swappable.h
  libcxx/include/__iterator/iter_swap.h
  libcxx/include/__iterator/iterator_traits.h
  libcxx/include/__iterator/ranges_distance.h
  libcxx/include/__ranges/counted.h
  libcxx/include/__ranges/drop.h
  libcxx/include/__ranges/empty_view.h
  libcxx/include/__ranges/join_view.h
  libcxx/include/__ranges/take.h
  libcxx/include/algorithm
  libcxx/include/iterator
  libcxx/include/module.modulemap
  libcxx/include/ranges
  libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_equal.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/iterator/algorithm_concepts.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_copyable.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_movable.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_swappable.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/iterator/ranges_distance.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop.module.verify.cpp
  libcxx/test/libcxx/diagnostics/detail.headers/ranges/take.module.verify.cpp
  libcxx/test/std/iterators/iterator.requirements/alg.req.ind.copy/indirectly_copyable.compile.pass.cpp
  libcxx/test/std/iterators/iterator.requirements/alg.req.ind.copy/indirectly_copyable.subsumption.compile.pass.cpp
  libcxx/test/std/iterators/iterator.requirements/alg.req.ind.move/indirectly_movable.compile.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115122.391929.patch
Type: text/x-patch
Size: 56300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211205/94f83235/attachment-0001.bin>


More information about the libcxx-commits mailing list