[PATCH v2] libstdc++: New _IotaArray utility to simplify index pack creation
Matthias Kretz
m.kretz@gsi.de
Mon Oct 27 09:21:32 GMT 2025
Tomasz Kaminski [Monday, 27 October 2025, 09:49:19 CET]:
> On Fri, Oct 24, 2025 at 6:09 PM Matthias Kretz <m.kretz@gsi.de> wrote:
> > template for (constexpr int __i : _IotaArray<10>)
>
> I can simply use views::iota here, I do not need to materialize array for
> that.
I can't. Is https://compiler-explorer.com/z/Y4seqGrsY supposed to work?
- Matthias
--
──────────────────────────────────────────────────────────────────────────
Dr. Matthias Kretz https://mattkretz.github.io
GSI Helmholtz Center for Heavy Ion Research https://gsi.de
std::simd
──────────────────────────────────────────────────────────────────────────
More information about the Libstdc++
mailing list