Structured bindings
Attributes on bindings, bindings as conditions, constexpr bindings, and bindings that introduce a pack.
Connected features
Papers
4 · Tokyo 2024 → Wrocław 2024Allows attributes such as [[maybe_unused]] on individual structured bindings.
Allows a structured binding declaration as the condition of if, while, for and switch.
Allows a structured binding to introduce a pack: auto [a, ...rest] = tup;.
Allows constexpr structured bindings and references to constexpr variables in constant expressions.