这些资料结构不包含建构函式、复制指派运算子,或本身不是PODS的非静态资料成员。
They do not contain constructors, copy assignment operators, destructors, or non-static data members that are not themselves PODS.
另外,定义此运算子的支援可以是范例的形式,其中有一个或多个类似的型别需要这类转换。
DateTime type should not be implemented as a conversion operator. Use a constructor to convert a type to another type that is not in the same domain.
如果您的程序码在这种类别或结构上使用此运算子,请确定了解其重新定义的行为。
If your code USES this operator on such a class or structure, make sure that you understand its redefined behavior.
在类别或结构的名称后面,输入成员存取运算子或范围运算子(如本主题稍早所述)。
After the name of a class or structure, type the members access operator or scope operator (as shown earlier in this topic).
也可以使用管线运算子来结合函式呼叫,也就是可将一个函式的输出或传回值提供给另一个函式做为输入。
You can combine function calls by using the pipeline operator, which enables the output or return value of one function to be given to another function as input.
您可以使用下表所列的标准逻辑运算子合并或修改搜寻条件。
You can combine or modify search conditions using the standard logical operators listed in the following table.
当方法使用可能产生例外状况的运算子时,或是方法呼叫或存取其他可能产生例外状况的程序时,请考虑使用例外处理。
Consider using exception handling in any method that USES operators that may generate an exception, or that calls into or accesses other procedures that may generate an exception.
转换运算子的定义,其中引数的型别就是类别或结构的型别。
A definition of a conversion operator where the argument is of the type of your class or structure.
当您定义类别或结构时,可以定义一或多个将该类别或结构型别转换为其他型别的转换运算子。
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.
若要使用此运算子,您必须将此运算子对指定的型别加以多载,或定义一个此运算子已定义型别的转换。
To use the operator, you must overload it for the specified type or define a conversion to a type for which the operator is defined.
若要使用此运算子,您必须将此运算子对指定的型别加以多载,或定义一个此运算子已定义型别的转换。
To use the operator, you must overload it for the specified type or define a conversion to a type for which the operator is defined.
应用推荐