Next: , Previous: , Up: ISO C Keyword Substitutes   [Contents][Index]

8.3 nullptr

Gnulib module: nullptr

The nullptr module arranges for nullptr to act like standard C and C++.

The nullptr keyword yields a null pointer. It differs from the NULL macro, in that NULL might be an integer whereas nullptr is of a special nullptr_t type with only one value, namely nullptr itself. Using nullptr can help some compilers emit more sensible warnings, can avoid the need to cast a null pointer passed to a function prototyped with an ellipsis, and removes the need to include <stddef.h> merely to define NULL.

Portability problems fixed by Gnulib:

Portability problems not fixed by Gnulib: