File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 4672
4672
The type of the result is \keyword {bool}.
4673
4673
4674
4674
\pnum
4675
- \indextext {signed integer representation!ones' complement}%
4676
4675
\indextext {operator!ones' complement}%
4677
- The operand of \tcode {\~ {}} shall have integral or unscoped enumeration type; the
4678
- result is the ones' complement of its operand. Integral promotions are
4679
- performed. The type of the result is the type of the promoted operand.
4676
+ The operand of \tcode {\~ {}} shall have integral or unscoped enumeration type.
4677
+ Integral promotions are performed.
4678
+ The type of the result is the type of the promoted operand.
4679
+ % FIXME: [basic.fundamental]/p5 uses $x_i$; [expr] uses $\tcode{x}_i$.
4680
+ Given the coefficients $ \tcode {x}_i$
4681
+ of the base-2 representation\iref {basic.fundamental }
4682
+ of the promoted operand \tcode {x},
4683
+ the coefficient $ \tcode {r}_i$
4684
+ of the base-2 representation of the result \tcode {r}
4685
+ is 1 if $ \tcode {x}_i$ is 0, and 0 otherwise.
4680
4686
There is an ambiguity
4681
4687
in the grammar when \tcode {\~ {}} is followed by
4682
4688
a \grammarterm {type-name} or \grammarterm {decltype-specifier}.
You can’t perform that action at this time.
0 commit comments