如果有很多 data members(数据成员)和/或 base classes(基类),成倍增加的 initialization lists(初始化列表)的存在引起令人郁闷的重复(在列表中)和厌烦(在程序员中)。
基于4个网页-相关网页
member initialization lists 成员初始化列表
Is there any way to make the implicit copy constructor use initialization lists? Is there any other way around manually writing the initialization list?
有什么方法可以利用隐式的拷贝构造函数初始化列表吗?有没有其他方式手动编写初始化列表吗?
youdao
应用推荐
模块上移
模块下移
不移动