r/cpp • • 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

40 comments sorted by

View all comments

Show parent comment

1

u/droxile Apr 24 '26

[optional<T>, span<T>] for vectors, but yes probably more useful for statically sized arrays.

This feels like stepping stones towards pattern matching