umbrello
2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
test
import
cxx
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
4
char
*
pc
=
nullptr
;
// OK
5
int
*
pi
=
nullptr
;
// OK
6
bool
b
=
nullptr
;
// OK. b is false.
7
//int i = nullptr; // error
8
9
foo
(
nullptr
);
// calls foo(nullptr_t), not foo(int);
b
bool b
Definition
cxx11-null-pointer-constant.h:6
pc
char * pc
Definition
cxx11-null-pointer-constant.h:4
pi
int * pi
Definition
cxx11-null-pointer-constant.h:5
foo
foo(nullptr)
Generated by
1.10.0