Re: [PATCH 3/3] libstdc++: Implement ranges::zip_view from P2321R2

2022-08-31 Thread Jonathan Wakely via Gcc-patches
On Fri, 26 Aug 2022 at 21:05, Jonathan Wakely wrote: > > On Tue, 23 Aug 2022 at 02:38, Patrick Palka via Libstdc++ > wrote: > > +template > > + constexpr void > > + __tuple_for_each(_Fp&& __f, _Tuple&& __tuple) > > + { > > + std::apply([&](_Ts&&... __elts) { > > +

Re: [PATCH 3/3] libstdc++: Implement ranges::zip_view from P2321R2

2022-08-26 Thread Jonathan Wakely via Gcc-patches
On Tue, 23 Aug 2022 at 02:38, Patrick Palka via Libstdc++ wrote: > +template > + constexpr void > + __tuple_for_each(_Fp&& __f, _Tuple&& __tuple) > + { > + std::apply([&](_Ts&&... __elts) { > + (std::__invoke(__f, std::forward<_Ts>(__elts)), ...); > + }, std:

Re: [PATCH 3/3] libstdc++: Implement ranges::zip_view from P2321R2

2022-08-24 Thread Jonathan Wakely via Gcc-patches
On Tue, 23 Aug 2022 at 02:38, Patrick Palka via Libstdc++ wrote: > > Tested on 86_64-pc-linux-gnu, does this look OK for trunk? As discussed privately, please remove the #include (which is not needed, and adds declarations to the global namespace that we don't need). OK with that change, thanks