Compile time decision whether a pointer type is NULL or no

How do we check at compile time whether or not a pointer type argument is nullptr in C++?
It depends on what you're doing.
You can use the standard type trait std::is_null_pointer:
https://en.cppreference.com/w/cpp/types/is_null_pointer
Registered users can post here. Sign in or register to post.