A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N3587
Date: 2013-03-17
For Loop Exit Strategies
by Alan Talbot
Excerpt:
This proposal suggests an enhancement to
foriteration statements to allow the programmer to specify separate blocks of code that execute on completion of aforloop; one for normal termi-nation (when the loop condition is no longer met) and the other for early termination (when the loop is exited with abreak). This feature would be especially useful in range-basedforstatements.

Add a Comment
Comments are closed.