From Jason Turner

[expr.pre.incr]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmps51r8opz/{from.md → to.md} +17 -14
tmp/tmps51r8opz/{from.md → to.md} RENAMED
@@ -1,17 +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`, or set to `true`
4
- if it is `bool` (this use is deprecated). The operand shall be a
5
- modifiable lvalue. The type of the operand shall be an arithmetic type
6
- or a pointer to a completely-defined object type. The result is the
7
- updated operand; it is an lvalue, and it is a bit-field if the operand
8
- is a bit-field. If `x` is not of type `bool`, the expression `++x` is
9
- equivalent to `x+=1` See the discussions of addition ([[expr.add]]) and
10
- assignment operators ([[expr.ass]]) for information on conversions.
11
-
12
- The operand of prefix `\dcr` is modified by subtracting `1`. The operand
13
- shall not be of type `bool`. The requirements on the operand of prefix
14
- `\dcr` and the properties of its result are otherwise the same as those
15
- of prefix `++`. For postfix increment and decrement, see 
16
- [[expr.post.incr]].
 
 
 
17
 
 
1
  ### Increment and decrement <a id="expr.pre.incr">[[expr.pre.incr]]</a>
2
 
3
+ The operand of prefix `++` is modified by adding `1`. The operand shall
4
+ be a modifiable lvalue. The type of the operand shall be an arithmetic
5
+ type other than cv `bool`, or a pointer to a completely-defined object
6
+ type. The result is the updated operand; it is an lvalue, and it is a
7
+ bit-field if the operand is a bit-field. The expression `++x` is
8
+ equivalent to `x+=1`.
9
+
10
+ [*Note 1*: See the discussions of addition ([[expr.add]]) and
11
+ assignment operators ([[expr.ass]]) for information on
12
+ conversions. *end note*]
13
+
14
+ The operand of prefix `\dcr` is modified by subtracting `1`. The
15
+ requirements on the operand of prefix `\dcr` and the properties of its
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