tmp/tmp9u6jcgcw/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,11 @@
|
|
| 1 |
#### Increment and decrement <a id="expr.pre.incr">[[expr.pre.incr]]</a>
|
| 2 |
|
| 3 |
-
The operand of prefix `++`
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
operand; it is an lvalue, and it is a bit-field if the operand is a
|
| 9 |
-
bit-field. The expression `++x` is equivalent to `x+=1`.
|
| 10 |
|
| 11 |
-
[*Note 1*:
|
| 12 |
-
operators [[expr.ass]] for information on conversions. — *end note*]
|
| 13 |
-
|
| 14 |
-
The operand of prefix `--` is modified [[defns.access]] by subtracting
|
| 15 |
-
`1`. The requirements on the operand of prefix `--` and the properties
|
| 16 |
-
of its result are otherwise the same as those of prefix `++`.
|
| 17 |
-
|
| 18 |
-
[*Note 2*: For postfix increment and decrement, see
|
| 19 |
[[expr.post.incr]]. — *end note*]
|
| 20 |
|
|
|
|
| 1 |
#### Increment and decrement <a id="expr.pre.incr">[[expr.pre.incr]]</a>
|
| 2 |
|
| 3 |
+
The operand of prefix `++` or `--` shall not be of type cv `bool`. An
|
| 4 |
+
operand with volatile-qualified type is deprecated; see
|
| 5 |
+
[[depr.volatile.type]]. The expression `++x` is otherwise equivalent to
|
| 6 |
+
`x+=1` and the expression `--x` is otherwise equivalent to `x-=1`
|
| 7 |
+
[[expr.assign]].
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
[*Note 1*: For postfix increment and decrement, see
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
[[expr.post.incr]]. — *end note*]
|
| 11 |
|