libstdc++: Add a move-only testsuite iterator type
authorPatrick Palka <ppalka@redhat.com>
Mon, 2 Mar 2020 21:21:33 +0000 (16:21 -0500)
committerPatrick Palka <ppalka@redhat.com>
Wed, 4 Mar 2020 03:44:35 +0000 (22:44 -0500)
commitd6d4b339f5b77070ee9ae896c2f20ba315b7b7e0
treef8dcc2fce2e8444e5e009902613f0fade57cf0ba
parent05779e2c89e06d09a6b685797e87723f7906a5ce
libstdc++: Add a move-only testsuite iterator type

This adds a move-only testsuite iterator wrapper to <testsuite_iterators.h>
which will be used in the tests for LWG 3355.  The tests for LWG 3389 and 3390
are adjusted to use this new iterator wrapper.

libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_iterators.h (input_iterator_wrapper_nocopy):
New testsuite iterator.
* testsuite/24_iterators/counted_iterator/lwg3389.cc: Use it.
* testsuite/24_iterators/move_iterator/lwg3390.cc: Likewise.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc
libstdc++-v3/testsuite/util/testsuite_iterators.h