From Jason Turner

[stmt.jump.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpq2h21be6/{from.md → to.md} +24 -0
tmp/tmpq2h21be6/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### General <a id="stmt.jump.general">[[stmt.jump.general]]</a>
2
+
3
+ Jump statements unconditionally transfer control.
4
+
5
+ ``` bnf
6
+ jump-statement:
7
+ break ';'
8
+ continue ';'
9
+ return expr-or-braced-init-listₒₚₜ ';'
10
+ coroutine-return-statement
11
+ goto identifier ';'
12
+ ```
13
+
14
+ [*Note 1*: On exit from a scope (however accomplished), objects with
15
+ automatic storage duration [[basic.stc.auto]] that have been constructed
16
+ in that scope are destroyed in the reverse order of their construction.
17
+ For temporaries, see  [[class.temporary]]. However, the program can be
18
+ terminated (by calling `std::exit()` or `std::abort()`
19
+ [[support.start.term]], for example) without destroying objects with
20
+ automatic storage duration. — *end note*]
21
+
22
+ [*Note 2*: A suspension of a coroutine [[expr.await]] is not considered
23
+ to be an exit from a scope. — *end note*]
24
+