[libcxx-commits] [PATCH] D103171: [libc++] Deprecate std::iterator and remove it as a base class

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 26 08:29:28 PDT 2021


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

C++17 deprecated std::iterator and removed it as a base class for all
iterator adaptors. We implement that change, but we still provide a way
to inherit from std::iterator in the few cases where doing otherwise
would be an ABI break.

Supersedes D101729 <https://reviews.llvm.org/D101729> and the std::iterator base parts of D103101 <https://reviews.llvm.org/D103101> and D102657 <https://reviews.llvm.org/D102657>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103171

Files:
  libcxx/include/__config
  libcxx/include/__memory/raw_storage_iterator.h
  libcxx/include/iterator
  libcxx/test/libcxx/iterators/iterator.requirements/iterator.concepts/cpp20_iter_concepts.pass.cpp
  libcxx/test/libcxx/iterators/iterator.requirements/iterator.concepts/cpp20_iter_traits.pass.cpp
  libcxx/test/std/iterators/iterator.primitives/iterator.basic/deprecated.verify.cpp
  libcxx/test/std/iterators/iterator.primitives/iterator.basic/iterator.pass.cpp
  libcxx/test/std/iterators/predef.iterators/insert.iterators/back.insert.iterator/types.pass.cpp
  libcxx/test/std/iterators/predef.iterators/insert.iterators/front.insert.iterator/types.pass.cpp
  libcxx/test/std/iterators/predef.iterators/insert.iterators/insert.iterator/types.pass.cpp
  libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp
  libcxx/test/std/iterators/stream.iterators/istream.iterator/types.pass.cpp
  libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/types.pass.cpp
  libcxx/test/std/iterators/stream.iterators/ostream.iterator/types.pass.cpp
  libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/types.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103171.347973.patch
Type: text/x-patch
Size: 31254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210526/51a43275/attachment-0001.bin>


More information about the libcxx-commits mailing list