不过,可为类型定义隐式转换运算符,这样就可以对这些类型使用赋值运算符。
However, you can define implicit conversion operators for a type, which enable you to use the assignment operator with those types.
可以用单个实参来调用的构造函数定义了从形参类型到该类类型的一个隐式转换。
A constructor that can be called with a single argument defines an implicit conversion from the parameter type to the class type.
应用推荐