Posted on 2007-12-25 09:11
daiybh 閱讀(311)
評論(0) 編輯 收藏 引用 所屬分類:
c++
一個空類編譯器自動給其添加的函數有哪幾個?
class Empty
{
public:
Empty(); // 缺省構造函數
Empty( const Empty& ); // 拷貝構造函數
~Empty(); // 析構函數
Empty& operator=( const Empty& ); // 賦值運算符
Empty* operator&(); // 取址運算符
const Empty* operator&() const; // 取址運算符 const
};