tmp/tmpatzq6x5h/{from.md → to.md}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
## Boolean conversions <a id="conv.bool">[[conv.bool]]</a>
|
| 2 |
|
| 3 |
A prvalue of arithmetic, unscoped enumeration, pointer, or pointer to
|
| 4 |
member type can be converted to a prvalue of type `bool`. A zero value,
|
| 5 |
null pointer value, or null member pointer value is converted to
|
| 6 |
-
`false`; any other value is converted to `true`.
|
|
|
|
| 7 |
`std::nullptr_t` can be converted to a prvalue of type `bool`; the
|
| 8 |
resulting value is `false`.
|
| 9 |
|
|
|
|
| 1 |
## Boolean conversions <a id="conv.bool">[[conv.bool]]</a>
|
| 2 |
|
| 3 |
A prvalue of arithmetic, unscoped enumeration, pointer, or pointer to
|
| 4 |
member type can be converted to a prvalue of type `bool`. A zero value,
|
| 5 |
null pointer value, or null member pointer value is converted to
|
| 6 |
+
`false`; any other value is converted to `true`. For
|
| 7 |
+
direct-initialization ([[dcl.init]]), a prvalue of type
|
| 8 |
`std::nullptr_t` can be converted to a prvalue of type `bool`; the
|
| 9 |
resulting value is `false`.
|
| 10 |
|