libstdc++: Simplify ranges::to closure objects
commit0832cf42a6912f876086cb14b92f788d8406f393
authorPatrick Palka <ppalka@redhat.com>
Thu, 7 Dec 2023 21:36:23 +0000 (7 16:36 -0500)
committerPatrick Palka <ppalka@redhat.com>
Thu, 7 Dec 2023 21:36:23 +0000 (7 16:36 -0500)
treeb867bccec2c91e87c3fae91b9cd60d38cd2d6792
parentcab0083dc72dfd22a1b2016b068f9313beb7f091
libstdc++: Simplify ranges::to closure objects

We can use the existing _Partial range adaptor closure object for
ranges::to instead of essentially reimplementing it.

libstdc++-v3/ChangeLog:

* include/std/ranges (__detail::_ToClosure): Replace with ...
(__detail::_To): ... this.
(__detail::_ToClosure2): Replace with ...
(__detail::To2): ... this.
(to): Simplify using the existing _Partial range adaptor
closure object.
libstdc++-v3/include/std/ranges