[libc++] [ranges] Uncomment operator<=> in transform and iota iterators.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 27 Sep 2021 04:58:56 +0000 (00:58 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Sun, 3 Oct 2021 01:26:27 +0000 (21:26 -0400)
commit8320017b79eb8006b85a53ede8dfc92caa6da5a7
tree1487fd3cc00d2d3f008760cdc3440539b5be556a
parent2da3facd864c36739e6e7f4b90e12aeb5afa7695
[libc++] [ranges] Uncomment operator<=> in transform and iota iterators.

The existing tests for transform_view::iterator weren't quite right,
and can be simplified now that we have more of C++20 available to us.
Having done that, let's use the same pattern for iota_view::iterator
as well.

Differential Revision: https://reviews.llvm.org/D110774
libcxx/include/__ranges/iota_view.h
libcxx/include/__ranges/transform_view.h
libcxx/test/std/ranges/range.adaptors/range.transform/iterator/compare.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.transform/types.h
libcxx/test/std/ranges/range.factories/range.iota.view/iterator/compare.pass.cpp