conversion constructor(转换构造函数): 可用单个实参调用的非 explicit 构造函数。隐式使用转换构造函数将实参的类型转换为类类型。
基于74个网页-相关网页
Unless overridden for a specific object, this conversion happens within the constructor of the internal DocumentContext class.
除非针对特定对象重写,否则这种转变应在内部documentcontext类的构造函数中发生。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
A conversion operator and a constructor have been defined making the same conversion.
转换运算子和建构函式已经定义为产生相同的转换。
应用推荐