with class type conversion 用类类型转换的
For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
A definition of a conversion operator that returns the type of your class or structure.
一个转换运算符的定义,返回您的类或结构的类型。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
应用推荐