This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

28
cppdraft/lex/nullptr.md Normal file
View File

@@ -0,0 +1,28 @@
[lex.nullptr]
# 5 Lexical conventions [[lex]](./#lex)
## 5.13 Literals [[lex.literal]](lex.literal#lex.nullptr)
### 5.13.8 Pointer literals [lex.nullptr]
[pointer-literal:](#nt:pointer-literal "5.13.8Pointer literals[lex.nullptr]")
nullptr
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/lex.tex#L2151)
The pointer literal is the keyword nullptr[.](#1.sentence-1)
It has typestd::nullptr_t[.](#1.sentence-2)
[*Note [1](#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[.](#1.sentence-3)
See [[conv.ptr]](conv.ptr "7.3.12Pointer conversions") and [[conv.mem]](conv.mem "7.3.13Pointer-to-member conversions")[.](#1.sentence-4)
— *end note*]