C++空类的默认成员函数总结
2011-04-15 10:01
344 查看
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; // 取值运算符
};
class Empty
{
public:
Empty(); // 缺省构造函数
Empty(const Empty&); // 拷贝构造函数
~Empty(); // 析构函数
Empty& operator=(const Empty&); // 赋值运算符
Empty* operator&(); // 取值运算符
const Empty* operator&() const; // 取值运算符
};
相关文章推荐
- C++空类的默认成员函数总结
- C++空类的默认成员函数总结
- C++中的空类,默认产生的类成员函数
- C++空类默认有哪些成员函数?
- C++空类,编译器默认产生的成员函数
- C++中的空类,默认产生哪些类成员函数
- C++空类默认产生的成员函数
- C++中的空类,默认产生的类成员函数
- C++中的空类,编译器默认可以产生哪些成员函数
- C++ 空类默认产生的类成员函数
- C++中的空类,默认产生哪些类成员函数?
- C++中的空类,默认产生哪些类成员函数?
- C++中的空类,默认产生哪些类成员函数?
- C++中的空类,默认产生哪些类成员函数
- C++中的空类,默认产生哪些类成员函数?
- C++ 中的空类,默认产生哪些类成员函数?
- C++中的空类,编译器默认可以产生哪些成员函数
- C++中的空类默认产生哪些类成员函数?
- C++中的空类,默认产生哪些类成员函数?
- C++中一个空类默认产生的成员函数