libstdc++: Avoid heavyweight std::visit in ranges::join_with_view
authorPatrick Palka <ppalka@redhat.com>
Tue, 4 Oct 2022 14:54:36 +0000 (10:54 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 4 Oct 2022 14:54:36 +0000 (10:54 -0400)
commit3b8bcc3f8b821e7359f8504334488ff2b1fc8f30
treeb5eed05d124c50e8e23c4842fea0a94d6872e465
parentbeeb6898fe8ad44731bc58cad7220511b8225797
libstdc++: Avoid heavyweight std::visit in ranges::join_with_view

libstdc++-v3/ChangeLog:

* include/std/ranges (join_with_view::_Iterator::operator*):
Replace use of std::visit with manual visitation.
(join_with_view::_Iterator::operator++): Likewise.
(join_with_view::_Iterator::operator--): Likewise.
(join_with_view::_Iterator::iter_move): Likewise.
(join_with_view::_Iterator::iter_swap): Likewise.
libstdc++-v3/include/std/ranges