赋值运算符
- 网络assignment operator;Assign Operator
-
如果您喜欢的语言中包含其他赋值运算符(比如.=或=或^=),那么可以扩展ASSIGNOP正则表达式来识别这些运算符。
If your favorite language has other assignment operators ( such as . = or | | = or ^ = ), you could extend the ASSIGN_OP regex to recognize those as well .
-
AlignAssignments()中的第一个for循环判断其中的赋值运算符应当对齐的列。
The first for loop in AlignAssignments () determines the column in which the assignment operators should be aligned .
-
而赋值运算符在优化之后还存活并从DLL中导出。
However , the assignment operator survived optimization and got exported from a DLL .
-
如果您需要使类成为不可复制的,典型的实现方法是将类的复制构造函数和赋值运算符设置为private或protected。
If you need to make your class non-copyable , the typical way is to make the copy constructor and the assignment operator of the class private or protected .
-
所以到现在为止,赋值运算符复制了很多数据。
So the assignment operator thus far makes copies of things .
-
所以你并不需要使用赋值运算符。
So you don 't have to use the assignment operator .
-
赋值运算符左边必须是变量或属性
Left side of assignment operator must be variable or property
-
所以这是相等操作符,然而那个单等号是一个赋值运算符。
So this is the equality operator , whereas the single equal sign is the assignment operator .
-
目标在于避免意外地使用单等号赋值运算符而非双等号比较运算符
The goal here is to avoid accidentally using the single-equals assignment operator instead of the double-equals comparison operator
-
构造函数有三种情况,在重载赋值运算符时一定要分清楚。
As the construction function has three kinds of different conditions , assignment operator overriding must be given attention .
-
当for循环遍历了所有行之后,这些行中的赋值运算符将被正确对齐。
Once the for loop has iterated all the lines , any assignment operators within them will now be aligned correctly .
-
每个类(其实例要在容器内使用)必须至少实现拷贝构造函数(实现赋值运算符,也是好习惯)。
Each class ( whose instance will go into the container ) must implement at least the copy constructor ( it is good to implement also the assignment operator .