tmp/tmpc_mp_bjq/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
| 1 |
-
### Increment and decrement <a id="expr.pre.incr">[[expr.pre.incr]]</a>
|
| 2 |
|
| 3 |
-
The operand of prefix `++` is modified by adding `1`.
|
| 4 |
-
be a modifiable lvalue. The type of the operand shall
|
| 5 |
-
type other than cv `bool`, or a pointer to a
|
| 6 |
-
type.
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
[*Note 1*: See the discussions of addition
|
| 11 |
-
|
| 12 |
-
conversions. — *end note*]
|
| 13 |
|
| 14 |
-
The operand of prefix `\dcr` is modified by subtracting
|
| 15 |
-
requirements on the operand of prefix `\dcr` and the properties
|
| 16 |
-
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 `++` is modified [[defns.access]] by adding `1`.
|
| 4 |
+
The operand shall be a modifiable lvalue. The type of the operand shall
|
| 5 |
+
be an arithmetic type other than cv `bool`, or a pointer to a
|
| 6 |
+
completely-defined object type. An operand with volatile-qualified type
|
| 7 |
+
is deprecated; see [[depr.volatile.type]]. The result is the updated
|
| 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*: See the discussions of addition [[expr.add]] and assignment
|
| 12 |
+
operators [[expr.ass]] for information on conversions. — *end note*]
|
|
|
|
| 13 |
|
| 14 |
+
The operand of prefix `\dcr` is modified [[defns.access]] by subtracting
|
| 15 |
+
`1`. The requirements on the operand of prefix `\dcr` 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 |
|