When you define a conversion operator for your type, you tell the compiler that your type may be substituted for the target type.
英
美
当你为自己的类型定义一个转换的时候,就是告诉编译器,你的类型可以替换一个目标类型。
目录
查词历史
英 汉