[PATCH 3/3] libstdc++: Implement ranges::zip_view from P2321R2
Jonathan Wakely
jwakely@redhat.com
Fri Aug 26 20:05:37 GMT 2022
On Tue, 23 Aug 2022 at 02:38, Patrick Palka via Libstdc++
<libstdc++@gcc.gnu.org> wrote:
> + template<typename _Fp, typename _Tuple>
> + constexpr void
> + __tuple_for_each(_Fp&& __f, _Tuple&& __tuple)
> + {
> + std::apply([&]<typename... _Ts>(_Ts&&... __elts) {
> + (std::__invoke(__f, std::forward<_Ts>(__elts)), ...);
> + }, std::forward<_Tuple>(__tuple));
Nicole Mazzuca noticed a problem with the definition of
tuple-for-each, which I've just added to the issues list:
https://cplusplus.github.io/LWG/issue3755
More information about the Libstdc++
mailing list