Quoting C++11: (18.2/9)
nullptr_t
is defined as follows:namespace std { typedef decltype(nullptr) nullptr_t; }
The type for which
nullptr_t
is a synonym has the characteristics described in 3.9.1 and 4.10. [ Note: Althoughnullptr
’s address cannot be taken, the address of anothernullptr_t
object that is an lvalue can be taken. —end note ]
Do we ever need objects of type nullptr_t
(other than nullptr
)?
Aucun commentaire:
Enregistrer un commentaire