]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Rearrange std::move_iterator helpers in stl_iterator.h
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Oct 2024 21:47:46 +0000 (22:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 11 Oct 2024 16:04:56 +0000 (17:04 +0100)
commit01c4d1fe251896c25dee7902cf2922927ce4906e
tree4cb0a66a44cc9371573aa50f97ea1f00f25ac9ee
parent1dcc6a1a67165a469d4cd9b6b39514c46cc656ad
libstdc++: Rearrange std::move_iterator helpers in stl_iterator.h

The __niter_base(move_iterator<I>) overload and __is_move_iterator trait
were originally immediately after the definition of move_iterator. The
addition of C++20 features after move_iterator meant that those helpers
were no longer anywhere near move_iterator.

This change puts them back where they used to be, before all the new
C++20 additions.

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (__niter_base(move_iterator<I>))
(__is_move_iterator, __miter_base, _GLIBCXX_MAKE_MOVE_ITERATOR)
(_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR): Move earlier in the
file.
libstdc++-v3/include/bits/stl_iterator.h