... constructor 构造函数 constructor initializer 构造函数初始值设定项 Consumer Template 施用者模型板 ...
基于410个网页-相关网页
constructor initializer list 构造函数初始化列表
Constructor Initializer Lists 构造函数初始化列表
constructor E initializer 构造函数初始值设定项
A constructor initializer list specifies initial values for one or more data members of the class.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
The constructor initializer is a list of member names, each of which is followed by that member's initial value in parentheses.
构造函数的初始化式是一系列成员名,每个成员后面是括在圆括号中的初始值。
The only way for a constructor to handle an exception from a constructor initializer is to write the constructor as a function try block.
构造函数要处理来自构造函数初始化式的异常,唯一的方法是将构造函数编写为函数测试块。
应用推荐