Image类重载等号运算符,对成员变量进行深拷贝,对内存数据进行浅拷贝,引用计数加一。
1
Image &operator = (const Image &img);
参数名
输入/输出
说明
img
输入
输入的Image类。