~/talk

Structured Binding Assignments (P3817)

Talkat Core C++ 2026 · 2026-10-20..10-21
name:Ran Regev
links:none on file
slides:none on file

Proposal adds a way to map structure-binding entries to already-declared variables using the keyword using x so bindings perform assignment rather than declaration. It requires a modifiable lvalue (postfix/unary expressions allowed), defines left-to-right evaluation and per-decomposition rules for arrays/tuple-like/aggregate cases, and preserves existing ref/auto semantics for copy/move. An experimental implementation exists as Clang/Godbolt prototype (R0 implemented, R1 wording in progress) and behaves as specified.

AI-written summary · about

  1. 0:00Introduction to P3817
  2. 1:29What is structured binding assignment
  3. 4:41Motivation for the feature
  4. 7:07Proposal details and syntax
  5. 12:44Semantics and evaluation order
  6. 16:00Ref-qualifiers and copying behavior
  7. 19:56Placeholder and duplicate targets
  8. 23:14Real-world use cases
  9. 25:24Syntax alternatives considered
  10. 26:47Implementation and Clang support
  11. 27:51Changes from R0 to R1
  12. 33:56Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.