Range-based for loop
for (auto x : range) over arrays and anything with begin/end.
Connected features
Papers
3 · San Francisco 2008 → Madrid 2011The original concepts-based wording for the range-based for loop. Core paper.
Adds the range-based for statement, specified without concepts. Report item ends with '-- note' (text of the note not recoverable via fetch).
Final range-for wording: lookup of begin/end via members, then ADL.