[libcxx-commits] [PATCH] D129099: [libcxx][ranges] Create a test tool `ProxyIterator` that customises `iter_move` and `iter_swap`

Hui via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 4 17:18:23 PDT 2022


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

It is meant to be used in ranges algorithm tests.
It is much simplified version of C++23's tuple + zip_view.
Using std::swap would cause compilation failure and using `std::move` would not create the correct rvalue proxy which would result in copies.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129099

Files:
  libcxx/test/support/test.support/test_proxy.pass.cpp
  libcxx/test/support/test_proxy.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129099.442155.patch
Type: text/x-patch
Size: 18099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220705/7f0af5cf/attachment.bin>


More information about the libcxx-commits mailing list