[libcxx-commits] [PATCH] D102781: [libc++] Assume that __wrap_iter always wraps a fancy pointer.

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 19 09:00:46 PDT 2021


Quuxplusone created this revision.
Quuxplusone added reviewers: ldionne, libc++, zoecarver.
Quuxplusone added a project: libc++.
Herald added a subscriber: mgrang.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.

So `__wrap_iter<reverse_iterator<int*>>` should be considered IFNDR, and every `__wrap_iter` should advertise contiguity in C++20.
Drive-by simplify some type traits.

This wraps up the pieces of D101404 <https://reviews.llvm.org/D101404> that didn't get merged yet but which I still consider good ideas.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102781

Files:
  libcxx/include/__iterator/iterator_traits.h
  libcxx/include/iterator
  libcxx/test/libcxx/iterators/contiguous_iterators.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102781.346481.patch
Type: text/x-patch
Size: 7697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210519/29c55d78/attachment.bin>


More information about the libcxx-commits mailing list