tmp/tmpmfthzo8m/{from.md → to.md}
RENAMED
|
@@ -8,19 +8,18 @@ value of object pointer or function pointer type. Such a conversion is
|
|
| 8 |
called a *null pointer conversion*. Two null pointer values of the same
|
| 9 |
type shall compare equal. The conversion of a null pointer constant to a
|
| 10 |
pointer to cv-qualified type is a single conversion, and not the
|
| 11 |
sequence of a pointer conversion followed by a qualification
|
| 12 |
conversion ([[conv.qual]]). A null pointer constant of integral type
|
| 13 |
-
can be converted to a prvalue of type `std::nullptr_t`.
|
| 14 |
-
prvalue is not a null pointer value.
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
can be converted to a prvalue of type “pointer to *cv* `void`”. The
|
| 18 |
-
|
| 19 |
-
type to a “pointer to *cv* `void`” represents the address of the same
|
| 20 |
-
byte in memory as the original pointer value. The null pointer value is
|
| 21 |
-
converted to the null pointer value of the destination type.
|
| 22 |
|
| 23 |
A prvalue of type “pointer to *cv* `D`”, where `D` is a class type, can
|
| 24 |
be converted to a prvalue of type “pointer to *cv* `B`”, where `B` is a
|
| 25 |
base class (Clause [[class.derived]]) of `D`. If `B` is an inaccessible
|
| 26 |
(Clause [[class.access]]) or ambiguous ([[class.member.lookup]]) base
|
|
|
|
| 8 |
called a *null pointer conversion*. Two null pointer values of the same
|
| 9 |
type shall compare equal. The conversion of a null pointer constant to a
|
| 10 |
pointer to cv-qualified type is a single conversion, and not the
|
| 11 |
sequence of a pointer conversion followed by a qualification
|
| 12 |
conversion ([[conv.qual]]). A null pointer constant of integral type
|
| 13 |
+
can be converted to a prvalue of type `std::nullptr_t`.
|
|
|
|
| 14 |
|
| 15 |
+
[*Note 1*: The resulting prvalue is not a null pointer
|
| 16 |
+
value. — *end note*]
|
| 17 |
+
|
| 18 |
+
A prvalue of type “pointer to *cv* `T`”, where `T` is an object type,
|
| 19 |
can be converted to a prvalue of type “pointer to *cv* `void`”. The
|
| 20 |
+
pointer value ([[basic.compound]]) is unchanged by this conversion.
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
A prvalue of type “pointer to *cv* `D`”, where `D` is a class type, can
|
| 23 |
be converted to a prvalue of type “pointer to *cv* `B`”, where `B` is a
|
| 24 |
base class (Clause [[class.derived]]) of `D`. If `B` is an inaccessible
|
| 25 |
(Clause [[class.access]]) or ambiguous ([[class.member.lookup]]) base
|