From Jason Turner

[stmt.cont]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmprqp1qc02/{from.md → to.md} +5 -34
tmp/tmprqp1qc02/{from.md → to.md} RENAMED
@@ -1,38 +1,9 @@
1
  ### The `continue` statement <a id="stmt.cont">[[stmt.cont]]</a>
2
 
3
  A `continue` statement shall be enclosed by [[stmt.pre]] an
4
- *iteration-statement* [[stmt.iter]]. The `continue` statement causes
5
- control to pass to the loop-continuation portion of the smallest such
6
- enclosing statement, that is, to the end of the loop. More precisely, in
7
- each of the statements
8
-
9
- ``` cpp
10
- while (foo) {
11
- {
12
- // ...
13
- }
14
- contin: ;
15
- }
16
- ```
17
-
18
- ``` cpp
19
- do {
20
- {
21
- // ...
22
- }
23
- contin: ;
24
- } while (foo);
25
- ```
26
-
27
- ``` cpp
28
- for (;;) {
29
- {
30
- // ...
31
- }
32
- contin: ;
33
- }
34
- ```
35
-
36
- a `continue` not contained in an enclosed iteration statement is
37
- equivalent to `goto` *`contin`*.
38
 
 
1
  ### The `continue` statement <a id="stmt.cont">[[stmt.cont]]</a>
2
 
3
  A `continue` statement shall be enclosed by [[stmt.pre]] an
4
+ *iteration-statement* or an *expansion-statement*. If the innermost
5
+ enclosing such statement X is an *iteration-statement* [[stmt.iter]],
6
+ the `continue` statement causes control to pass to the end of the
7
+ *statement* or *compound-statement* of X. Otherwise, control passes to
8
+ the end of the *compound-statement* of the current Sᵢ [[stmt.expand]].
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9