[libcxx-commits] [PATCH] D128864: [libc++] Fix algorihtms using reverse_iterator

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 29 16:31:58 PDT 2022


philnik created this revision.
philnik added reviewers: ldionne, var-const, Mordante.
Herald added a project: All.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This adds a C++20-version of `reverse_iterator` which doesn't SFINAE away the operators for use inside the classic STL algorithms. Pre-C++20 `_AlgRevIter` is just an alias for `reverse_iterator`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128864

Files:
  libcxx/include/__algorithm/copy.h
  libcxx/include/__algorithm/copy_backward.h
  libcxx/include/__algorithm/inplace_merge.h
  libcxx/include/__iterator/iterator_traits.h
  libcxx/include/__iterator/reverse_iterator.h
  libcxx/test/libcxx/algorithms/robust_against_cpp20_hostile_iterators.compile.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128864.441201.patch
Type: text/x-patch
Size: 13926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220629/bd7fdb1c/attachment-0001.bin>


More information about the libcxx-commits mailing list