class Empty
{
//....
}
这就好像你写下这样的代码:
class Empty
{
public:
Empty(){}
Empty(const Empty& rhs){}
~Empty(){}
Empty& operator=(const Empty& rhs){}
}
摘自Effective C++ 第三版 条款05:了解C++默默编写并调用哪些函数
class Empty
{
//....
}
class Empty
{
public:
Empty(){}
Empty(const Empty& rhs){}
~Empty(){}
Empty& operator=(const Empty& rhs){}
}