C++ nullptr的类型为std :: nullptr_t.
为什么一个程序喜欢
int main() { int* ptr = nullptr; }
仍然有效,虽然它不包括任何STL库?
c++ pointers stl nullptr c++11
c++ ×1
c++11 ×1
nullptr ×1
pointers ×1
stl ×1