vendredi 23 août 2019

Why is nullptr a part of the core language, but nullptr_t is a part of STL?

As far as I'm aware nullptr is a part of the core language.

Quoting C++11: (18.2/9)

nullptr_t is defined as follows:

namespace std { typedef decltype(nullptr) nullptr_t; }

and is defined in the header <cstddef>.

Aucun commentaire:

Enregistrer un commentaire