Concept SignedInteger
SignedInteger
Notation(符号)
- T
- A type playing the role of integral-type in the SignedInteger concept.
-
x,y,z, - Objects of type T
-
a,b, - Objects of type int
Valid expressions(有效表达式)
| Name | Expression | Type |
|---|---|---|
Conversion from int | T(a) | T |
Preincrement | ++x | T & |
Predecrement | --x | T & |
Postincrement | x++ | T |
Postdecrement | x-- | T |
Sum | x + y | T |
Sum with int | x + a | T |
Sum-assignment | x += y | T & |
Sum-assignment with int | x += a | T & |
Difference | x - y | T |
Difference with int | x - a | T |
Product | x * y | T |
Product with int | x * a | T |
Product-assignment with int | x *= a | T & |
Product with int on left | a * x | T |
Quotient | x / y | T |
Quotient with int | x / a | T |
Right-shift | x >> y | T |
Right-shift with int | x >> a | T |
Right-shift-assignment with int | x >>= a | T & |
Less-than comparison | x <> | Convertible to bool |
Less-than comparison with int | x <> | Convertible to bool |
Less-than comparison with size_t | x <>() | Convertible to bool |
Greater-than comparison | x > y | Convertible to bool |
Greater-than comparison with int | x > a | Convertible to bool |
Less-than-or-equal comparison | x <= y | Convertible to bool |
Less-than-or-equal comparison with int | x <= a | Convertible to bool |
Greater-than-or-equal comparison | x >= y | Convertible to bool |
Greater-than-or-equal comparison with int | x >= a | Convertible to bool |
Greater-than-or-equal comparison with int on left | a >= x | Convertible to bool |
Equality comparison | x == y | Convertible to bool |
Equality comparison with int | x == a | Convertible to bool |

没有评论:
发表评论