Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test if nullptr
//g++ 5.4.0 #include <iostream> int g = 1; int* foo() { return &g; } int* bar() { return nullptr; } int main() { if (const auto& fooRes = foo()) { std::cout << "fooRes not null\n"; } if (const auto& barRes = bar()) { std::cout << "barRes not null\n"; } }
run
|
edit
|
history
|
help
0
SayHi
motores
scemo dd
MCM
cppPyBatScoreSOLID
Avoiding visited networked paths
lifff
st_match
Such case
static property