The implicit conversion operator is defined, which converts a Point type to int.
隐式转换操作符将Point类型转换为int。
The source type provides the conversion operator.
源类型提供转换运算符。
In such cases, it is better not to define the conversion operator.
在这种情况下,不定义转换函数更好。
The conversion operator converts from a source type to a target type.
转换运算符将源类型转换为目标类型。
Ideally, customer research data should exist to support defining a conversion operator.
理想情况下,应存在客户研究数据,以支持定义转换运算符。
A definition of a conversion operator that returns the type of your class or structure.
一个转换运算符的定义,返回您的类或结构的类型。
A conversion operator provides a way for you to define how an object can be converted automatically to a different type.
当类较多且经常需要进行类型之间的转换时,定义类型转换操作符还是很方便的。
For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
应用推荐