Quoting C++11: (18.2/9)
nullptr_tis defined as follows:namespace std { typedef decltype(nullptr) nullptr_t; }The type for which
nullptr_tis a synonym has the characteristics described in 3.9.1 and 4.10. [ Note: Althoughnullptr’s address cannot be taken, the address of anothernullptr_tobject 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