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*
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 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 |
|