28 lines
991 B
Markdown
28 lines
991 B
Markdown
[expr.pre.incr]
|
||
|
||
# 7 Expressions [[expr]](./#expr)
|
||
|
||
## 7.6 Compound expressions [[expr.compound]](expr.compound#expr.pre.incr)
|
||
|
||
### 7.6.2 Unary expressions [[expr.unary]](expr.unary#expr.pre.incr)
|
||
|
||
#### 7.6.2.3 Increment and decrement [expr.pre.incr]
|
||
|
||
[1](#1)
|
||
|
||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/expressions.tex#L5390)
|
||
|
||
The operand of prefix ++ or -- shall not be of type cv bool[.](#1.sentence-1)
|
||
|
||
An operand with volatile-qualified type is deprecated;
|
||
see [[depr.volatile.type]](depr.volatile.type "D.4 Deprecated volatile types")[.](#1.sentence-2)
|
||
|
||
The expression ++x is otherwise equivalent to x+=1 and
|
||
the expression --x is otherwise equivalent to x-=1 ([[expr.assign]](expr.assign "7.6.19 Assignment and compound assignment operators"))[.](#1.sentence-3)
|
||
|
||
[*Note [1](#note-1)*:
|
||
|
||
For postfix increment and decrement, see [[expr.post.incr]](expr.post.incr "7.6.1.6 Increment and decrement")[.](#1.sentence-4)
|
||
|
||
â *end note*]
|