From Jason Turner

[stmt.select.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpooehd47k/{from.md → to.md} +22 -0
tmp/tmpooehd47k/{from.md → to.md} RENAMED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### General <a id="stmt.select.general">[[stmt.select.general]]</a>
2
+
3
+ Selection statements choose one of several flows of control.
4
+
5
+ ``` bnf
6
+ selection-statement:
7
+ if constexprₒₚₜ '(' init-statementₒₚₜ condition ')' statement
8
+ if constexprₒₚₜ '(' init-statementₒₚₜ condition ')' statement else statement
9
+ if '!'ₒₚₜ consteval compound-statement
10
+ if '!'ₒₚₜ consteval compound-statement else statement
11
+ switch '(' init-statementₒₚₜ condition ')' statement
12
+ ```
13
+
14
+ See  [[dcl.meaning]] for the optional *attribute-specifier-seq* in a
15
+ condition.
16
+
17
+ [*Note 1*: An *init-statement* ends with a semicolon. — *end note*]
18
+
19
+ [*Note 2*: Each *selection-statement* and each substatement of a
20
+ *selection-statement* has a block scope
21
+ [[basic.scope.block]]. — *end note*]
22
+