It looks like it to me. I think you could make some pretty readable and high performance variants and tuples with c++26 alone. c++29 if some of the work aimed at extending reflections code generation stuff gets in will enable so much more.
There's not much point benchmarking an experimental compiler, but I've seen a roughly 20x speedup compared to libc++'s variant with this. That's quite significant.
View all comments
Show parent comment
9
u/geekfolk Aug 22 '25
yup https://isocpp.org/files/papers/P2996R13.html#data_member_spec-define_aggregate