tmp/tmpgt9u2z7s/{from.md → to.md}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
### The `switch` statement <a id="stmt.switch">[[stmt.switch]]</a>
|
| 2 |
|
| 3 |
The `switch` statement causes control to be transferred to one of
|
| 4 |
several statements depending on the value of a condition.
|
| 5 |
|
| 6 |
-
|
| 7 |
-
value of the
|
| 8 |
-
|
| 9 |
enumeration type, or class type. If of class type, the condition is
|
| 10 |
contextually implicitly converted [[conv]] to an integral or enumeration
|
| 11 |
type. If the (possibly converted) type is subject to integral promotions
|
| 12 |
[[conv.prom]], the condition is converted to the promoted type. Any
|
| 13 |
statement within the `switch` statement can be labeled with one or more
|
|
|
|
| 1 |
### The `switch` statement <a id="stmt.switch">[[stmt.switch]]</a>
|
| 2 |
|
| 3 |
The `switch` statement causes control to be transferred to one of
|
| 4 |
several statements depending on the value of a condition.
|
| 5 |
|
| 6 |
+
If the *condition* is an *expression*, the value of the condition is the
|
| 7 |
+
value of the *expression*; otherwise, it is the value of the decision
|
| 8 |
+
variable. The value of the condition shall be of integral type,
|
| 9 |
enumeration type, or class type. If of class type, the condition is
|
| 10 |
contextually implicitly converted [[conv]] to an integral or enumeration
|
| 11 |
type. If the (possibly converted) type is subject to integral promotions
|
| 12 |
[[conv.prom]], the condition is converted to the promoted type. Any
|
| 13 |
statement within the `switch` statement can be labeled with one or more
|