tmp/tmpy7whbien/{from.md → to.md}
RENAMED
|
@@ -4,17 +4,19 @@ A prvalue of an integer type can be converted to a prvalue of another
|
|
| 4 |
integer type. A prvalue of an unscoped enumeration type can be converted
|
| 5 |
to a prvalue of an integer type.
|
| 6 |
|
| 7 |
If the destination type is unsigned, the resulting value is the least
|
| 8 |
unsigned integer congruent to the source integer (modulo 2ⁿ where n is
|
| 9 |
-
the number of bits used to represent the unsigned type).
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
|
| 13 |
If the destination type is signed, the value is unchanged if it can be
|
| 14 |
-
represented in the destination type
|
| 15 |
-
|
| 16 |
|
| 17 |
If the destination type is `bool`, see [[conv.bool]]. If the source
|
| 18 |
type is `bool`, the value `false` is converted to zero and the value
|
| 19 |
`true` is converted to one.
|
| 20 |
|
|
|
|
| 4 |
integer type. A prvalue of an unscoped enumeration type can be converted
|
| 5 |
to a prvalue of an integer type.
|
| 6 |
|
| 7 |
If the destination type is unsigned, the resulting value is the least
|
| 8 |
unsigned integer congruent to the source integer (modulo 2ⁿ where n is
|
| 9 |
+
the number of bits used to represent the unsigned type).
|
| 10 |
+
|
| 11 |
+
[*Note 1*: In a two’s complement representation, this conversion is
|
| 12 |
+
conceptual and there is no change in the bit pattern (if there is no
|
| 13 |
+
truncation). — *end note*]
|
| 14 |
|
| 15 |
If the destination type is signed, the value is unchanged if it can be
|
| 16 |
+
represented in the destination type; otherwise, the value is
|
| 17 |
+
*implementation-defined*.
|
| 18 |
|
| 19 |
If the destination type is `bool`, see [[conv.bool]]. If the source
|
| 20 |
type is `bool`, the value `false` is converted to zero and the value
|
| 21 |
`true` is converted to one.
|
| 22 |
|