mercredi 21 août 2019

Are objects of type nullptr_t ever needed?

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: Although nullptr’s address cannot be taken, the address of another nullptr_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