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.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
When you define a class or structure, you can define one or more conversion operators to convert that class or structure type to other types.
当您定义类别或结构时,可以定义一或多个将该类别或结构型别转换为其他型别的转换运算子。
A definition of a conversion operator where the argument is of the type of your class or structure.
转换运算子的定义,其中引数的型别就是类别或结构的型别。
A definition of a conversion operator where the argument is of the type of your class or structure.
转换运算子的定义,其中引数的型别就是类别或结构的型别。
应用推荐