Files
2025-10-25 03:02:53 +03:00

28 lines
991 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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*]