const class nullptr_t { public: template<class T> inline operator T*() const { return 0; } template<class C, class T> inline operator T C::*() const { return 0; } private: void operator&() const; } nullptr = {};
C++中的nullptr的定义
猜你喜欢
转载自blog.csdn.net/yangbomoto/article/details/80718891
今日推荐
周排行