]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add missing P0896 changes to <iterator>
authorPatrick Palka <ppalka@redhat.com>
Fri, 2 Oct 2020 14:51:31 +0000 (10:51 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 6 Oct 2020 13:05:25 +0000 (09:05 -0400)
commit36e6194e4bfc02f18a48e8c4ba141f7541c0debb
treebfcf95db6e3b255654a817a7eb592268840152b6
parent1ab88985631dd2c5a5e3b5c0dce47cf8b6ed2f82
libstdc++: Add missing P0896 changes to <iterator>

I noticed that the following changes from this paper were not yet
implemented.

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (reverse_iterator::iter_move):
Define for C++20 as per P0896.
(reverse_iterator::iter_swap): Likewise.
(move_iterator::operator*): Apply P0896 changes for C++20.
(move_iterator::operator[]): Likewise.
* testsuite/24_iterators/reverse_iterator/cust.cc: New test.

(cherry picked from commit 080a23bce12fa3f25860631f019777f728d2ef11)
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/reverse_iterator/cust.cc [new file with mode: 0644]