lundi 22 août 2016

Why can I use nullptr without including STL?

The C++ nullptr is of the type std::nullptr_t.

Why does a program like

int main() {
 int* ptr = nullptr;
}

still work, although it doesn't include any STL library?

Aucun commentaire:

Enregistrer un commentaire