[tab:cpp17.nullablepointer] (original) (raw)
16 Library introduction [library]
16.4 Library-wide requirements [requirements]
16.4.4 Requirements on types and expressions [utility.requirements]
16.4.4.4 Cpp17NullablePointer requirements [nullablepointer.requirements]
Table 36 β Cpp17NullablePointer requirements [tab:cpp17.nullablepointer]
| πExpression | Return type | Operational semantics |
|---|---|---|
| πP u(np); | Postconditions: u == nullptr | |
| πP u = np; | ||
| πP(np) | Postconditions: P(np) == nullptr | |
| πt = np | P& | Postconditions: t == nullptr |
| πa != b | decltype(a != b) models boolean-testable | !(a == b) |
| πa == np | decltype(a == np) and decltype(np == a) each model boolean-testable | a == P() |
| πnp == a | ||
| πa != np | decltype(a != np) and decltype(np != a) each model boolean-testable | !(a == np) |
| πnp != a |