Search:
Forum
General C++ Programming
Compile time decision whether a pointer
Compile time decision whether a pointer type is NULL or no
May 22, 2020 at 2:02am UTC
marhuum
(181)
How do we check at compile time whether or not a pointer type argument is nullptr in C++?
May 22, 2020 at 2:55am UTC
kbw
(9488)
It depends on what you're doing.
May 22, 2020 at 1:07pm UTC
TheToaster
(628)
You can use the standard type trait std::is_null_pointer:
https://en.cppreference.com/w/cpp/types/is_null_pointer
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs