[libcxx-commits] [PATCH] D129823: [libc++][ranges] Make range algorithms support proxy iterators

Konstantin Varlamov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 16 03:09:18 PDT 2022


var-const updated this revision to Diff 445214.
var-const marked 18 inline comments as done.
var-const added a comment.

Address feedback:

- in `sort.h`, attach `_AlgPolicy` to the `_Comp` template argument for the functions where adding a new template parameter would break the ABI;
- run the test;
- other fixes.

Also fix the CI.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129823

Files:
  libcxx/include/__algorithm/copy_backward.h
  libcxx/include/__algorithm/inplace_merge.h
  libcxx/include/__algorithm/ranges_copy_backward.h
  libcxx/include/__algorithm/sort.h
  libcxx/src/algorithm.cpp
  libcxx/test/libcxx/algorithms/nth_element_stability.pass.cpp
  libcxx/test/libcxx/algorithms/partial_sort_stability.pass.cpp
  libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.compile.pass.cpp
  libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp
  libcxx/test/support/test.support/test_proxy.pass.cpp
  libcxx/test/support/test_iterators.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129823.445214.patch
Type: text/x-patch
Size: 44387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220716/bfad8905/attachment-0001.bin>


More information about the libcxx-commits mailing list