~/talk

Loop Exit Blocks: A proposal for C++20

Talkat C++Now 2018 · 2018-05-06..05-11· [c-and-cpp]
links:none on file
slides:none on file

Proposal for an end-of-loop syntax that attaches two optional blocks: one runs when a loop finishes naturally and one runs when it exits by break. Concrete claims: enables range-based for over rvalue containers by providing lifetime extension of the loop’s initializer, removes the need for awkward lambdas, gotos, or duplicating tests, and makes patterns like “find-and-erase or assert if not found” expressible without moving the loop body into a helper function.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.