[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