tmp/tmpeonpcemn/{from.md → to.md}
RENAMED
|
@@ -1,30 +1,29 @@
|
|
| 1 |
#### Increment and decrement <a id="expr.post.incr">[[expr.post.incr]]</a>
|
| 2 |
|
| 3 |
-
The value of a postfix `++` expression is the value
|
|
|
|
| 4 |
|
| 5 |
[*Note 1*: The value obtained is a copy of the original
|
| 6 |
value. — *end note*]
|
| 7 |
|
| 8 |
The operand shall be a modifiable lvalue. The type of the operand shall
|
| 9 |
be an arithmetic type other than cv `bool`, or a pointer to a complete
|
| 10 |
object type. An operand with volatile-qualified type is deprecated; see
|
| 11 |
[[depr.volatile.type]]. The value of the operand object is modified
|
| 12 |
-
[[defns.access]]
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
[*Note 2*: Therefore, a function call cannot intervene between the
|
| 18 |
lvalue-to-rvalue conversion and the side effect associated with any
|
| 19 |
single postfix `++` operator. — *end note*]
|
| 20 |
|
| 21 |
The result is a prvalue. The type of the result is the cv-unqualified
|
| 22 |
-
version of the type of the operand.
|
| 23 |
-
cannot represent the incremented value, the resulting value of the
|
| 24 |
-
bit-field is *implementation-defined*. See also [[expr.add]] and
|
| 25 |
-
[[expr.ass]].
|
| 26 |
|
| 27 |
The operand of postfix `--` is decremented analogously to the postfix
|
| 28 |
`++` operator.
|
| 29 |
|
| 30 |
[*Note 3*: For prefix increment and decrement, see
|
|
|
|
| 1 |
#### Increment and decrement <a id="expr.post.incr">[[expr.post.incr]]</a>
|
| 2 |
|
| 3 |
+
The value of a postfix `++` expression is the value obtained by applying
|
| 4 |
+
the lvalue-to-rvalue conversion [[conv.lval]] to its operand.
|
| 5 |
|
| 6 |
[*Note 1*: The value obtained is a copy of the original
|
| 7 |
value. — *end note*]
|
| 8 |
|
| 9 |
The operand shall be a modifiable lvalue. The type of the operand shall
|
| 10 |
be an arithmetic type other than cv `bool`, or a pointer to a complete
|
| 11 |
object type. An operand with volatile-qualified type is deprecated; see
|
| 12 |
[[depr.volatile.type]]. The value of the operand object is modified
|
| 13 |
+
[[defns.access]] as if it were the operand of the prefix `++` operator
|
| 14 |
+
[[expr.pre.incr]]. The value computation of the `++` expression is
|
| 15 |
+
sequenced before the modification of the operand object. With respect to
|
| 16 |
+
an indeterminately-sequenced function call, the operation of postfix
|
| 17 |
+
`++` is a single evaluation.
|
| 18 |
|
| 19 |
[*Note 2*: Therefore, a function call cannot intervene between the
|
| 20 |
lvalue-to-rvalue conversion and the side effect associated with any
|
| 21 |
single postfix `++` operator. — *end note*]
|
| 22 |
|
| 23 |
The result is a prvalue. The type of the result is the cv-unqualified
|
| 24 |
+
version of the type of the operand.
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
The operand of postfix `--` is decremented analogously to the postfix
|
| 27 |
`++` operator.
|
| 28 |
|
| 29 |
[*Note 3*: For prefix increment and decrement, see
|