*** C++的空类默认会产生哪些类成员函数

class EMPTY
{
public:
    EMPTY(); //默认构造函数
    EMPTY(const EMPTY &); //复制构造函数
    ~EMPTY();//默认析构函数
    EMPTY & operator=(const EMTPY &); //赋值运算符
    EMPTY * operator&();  //取址运算符
    const EMPTY * operator&() const; //取址运算符 const
};

 

posted @ 2018-12-23 18:46  super行者  阅读(372)  评论(0编辑  收藏  举报