umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cxx11-null-pointer-constant.h
Go to the documentation of this file.
1// https://en.wikipedia.org/wiki/C%2B%2B11#Null_pointer_constant
2
3// #1
4char *pc = nullptr; // OK
5int *pi = nullptr; // OK
6bool b = nullptr; // OK. b is false.
7//int i = nullptr; // error
8
9foo(nullptr); // calls foo(nullptr_t), not foo(int);
bool b
Definition: cxx11-null-pointer-constant.h:6
char * pc
Definition: cxx11-null-pointer-constant.h:4
int * pi
Definition: cxx11-null-pointer-constant.h:5
foo(nullptr)