Files
2025-10-25 03:02:53 +03:00

917 B
Raw Permalink Blame History

[lex.nullptr]

5 Lexical conventions [lex]

5.13 Literals [lex.literal]

5.13.8 Pointer literals [lex.nullptr]

pointer-literal:
nullptr

1

#

The pointer literal is the keyword nullptr.

It has typestd::nullptr_t.

[Note 1:

std::nullptr_t is a distinct type that is neither a pointer type nor a pointer-to-member type; rather, a prvalue of this type is a null pointer constant and can be converted to a null pointer value or null member pointer value.

See [conv.ptr] and [conv.mem].

— end note]