This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

27
cppdraft/expr/pre/incr.md Normal file
View File

@@ -0,0 +1,27 @@
[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.4Deprecated 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.19Assignment 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.6Increment and decrement")[.](#1.sentence-4)
— *end note*]