r/cpp • u/pavel_v • Apr 24 '26
C++26: Structured Bindings can introduce a Pack
https://www.sandordargo.com/blog/2026/04/22/cpp26-structured-bindings-packs
101
Upvotes
r/cpp • u/pavel_v • Apr 24 '26
View all comments
Show parent comment
2
u/Ateist Apr 27 '26 edited Apr 27 '26
Can you provide more examples from that header?
And why should this be done via structured binding instead of adding a function that returns a pack, so that you could do:
?