Init
This commit is contained in:
28
cppdraft/lex/nullptr.md
Normal file
28
cppdraft/lex/nullptr.md
Normal 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.8 Pointer 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.12 Pointer conversions") and [[conv.mem]](conv.mem "7.3.13 Pointer-to-member conversions")[.](#1.sentence-4)
|
||||
|
||||
â *end note*]
|
||||
Reference in New Issue
Block a user