http://c.chinaitlab.com/cc/basic/200906/787382.html class Empty { public: Empty(); // 缺省构造函数 Empty(const Empty&); // 拷贝构造函数 ~Empty(); // 析构函数 Empty& operator=(const Empty&); // 赋值运算符 Empty* operator&(); // 取值运算符 const Empty* operator&() const; // 取值运算符 };
C++空类的默认成员函数总结
最新推荐文章于 2024-05-21 19:54:20 发布