libstdc++: Apply the move_iterator changes described in P1207R4
authorPatrick Palka <ppalka@redhat.com>
Wed, 22 Jan 2020 21:51:19 +0000 (16:51 -0500)
committerPatrick Palka <ppalka@redhat.com>
Wed, 5 Feb 2020 03:19:47 +0000 (22:19 -0500)
commit7db12d155ddf4b5d7a5e783a97995f85e19e88dd
tree42e3d4a8ca8dc834f60e0cb5d7dd5685f8278cc5
parent3ef39186b61939da7c658561b97f04b62973bf92
libstdc++: Apply the move_iterator changes described in P1207R4

These changes are needed for some of the tests in the constrained algorithm
patch, because they use move_iterator with an uncopyable output_iterator.  The
other changes described in the paper are already applied, it seems.

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (move_iterator::move_iterator): Move __i
when initializing _M_current.
(move_iterator::base): Split into two overloads differing in
ref-qualifiers as in P1207R4 for C++20.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator.h