]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement ranges::join_with_view from P2441R2
authorPatrick Palka <ppalka@redhat.com>
Tue, 4 Oct 2022 13:45:15 +0000 (09:45 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 4 Oct 2022 13:45:15 +0000 (09:45 -0400)
commit147f6ed39f66a3812a27d0ecd154c8efc1918688
tree7689b7c051500c2023b0ae36fa71b4ccb526a28c
parente886ebd17965d78f609b62479f4f48085108389c
libstdc++: Implement ranges::join_with_view from P2441R2

libstdc++-v3/ChangeLog:

* include/std/ranges: Include <variant> for C++23.
(__detail::__compatible_joinable_ranges): Define.
(__detail::__bidirectional_common): Define.
(join_with_view): Define.
(join_with_view::_Iterator): Define.
(join_with_view::_Sentinel): Define.
(views::__detail::__can_join_with_view): Define.
(views::_JoinWith, views::join_with): Define.
* testsuite/std/ranges/adaptors/join_with/1.cc: New test.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/join_with/1.cc [new file with mode: 0644]