Then, the assignment operator is called.
然后,调用赋值运算符。
Copy constructor or assignment operator?
复制构造函数或赋值操作符?
So you don't have to use the assignment operator.
所以你并不需要使用赋值运算符。
Everything to the left of the assignment operator.
赋值操作符左边的所有内容。
The assignment operator cannot be overloaded.
不能重载赋值运算符。
Everything to the right of the assignment operator.
赋值操作符右边的所有内容。
The equal sign is really called the "assignment operator."
那个等号其实是个“赋值运算符。”
So the assignment operator thus far makes copies of things.
所以到现在为止,赋值运算符复制了很多数据。
Break long assignments before the assignment operator.
在赋值操作符前将长表达式截断。
How to call to the copy constructor from the copy-assignment operator?
如何从复制赋值运算符调用复制构造函数?
However, the assignment operator survived optimization and got exported from a DLL.
而赋值运算符在优化之后还存活并从DLL中导出。
So this is the equality operator, whereas the single equal sign is the assignment operator.
所以这是相等操作符,然而那个单等号是一个赋值运算符。
A copy assignment operator is implemented by the compiler automatically unless you provide one.
拷贝赋值运算符是由编译器自动实现,除非你提供一个。
Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.
赋值操作符把右边的东西,复制到左边。
An assignment operator shall be implemented by a non-static member function with exactly one parameter.
赋值操作符应该实现为带一个参数的非静态成员函数。
The assignment operator is applied on a initialized object, but this is not the case in the copy constructor.
赋值运算符是应用于一个初始化的对象,但这并不是拷贝构造函数的情况下。
An assignment operator was not accessible in a base class and was therefore not generated for a derived class.
基类中的赋值运算符不可访问,因此无法为派生类生成赋值运算符。
When a binary operator is overloaded, the corresponding assignment operator, if any, is also implicitly overloaded.
重载二元运算符时,也会隐式重载相应的赋值运算符(如果有)。
If a class defines a copy constructor, acopy assignment operator, or a destructor, then it should define all three.
假定一个类界讲了拷贝机闭函数、赋值操纵符、析构函数中的一个,那么一样平常需供齐数界讲那仨函数。
We'll learn more about operator overloading in the next chapter, but in this chapter we cover the assignment operator.
在下一章我们将进一步学习操作符重载,本章中我们先介绍赋值操作符。
When I return by value from an assignment operator, firstly what is the mechanism and basis of calling the copy constructor?
当我返回值赋值操作符,首先是调用复制构造函数为基础的机制?
As the construction function has three kinds of different conditions, assignment operator overriding must be given attention.
构造函数有三种情况,在重载赋值运算符时一定要分清楚。
The goal here is to avoid accidentally using the single-equals assignment operator instead of the double-equals comparison operator
目标在于避免意外地使用单等号赋值运算符而非双等号比较运算符
On all compound assignment operators, overloading the binary operator implicitly overloads the equivalent compound assignment.
在所有复合指派运算子上,多载二元运算子即隐含多载对等的复合指派。
Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。
However, you can define implicit conversion operators for a type, which enable you to use the assignment operator with those types.
不过,可为类型定义隐式转换运算符,这样就可以对这些类型使用赋值运算符。
This assignment operator implicitly performs widening but not narrowing conversions if the compilation environment enforces strict semantics.
如果编译环境强制使用严格的语义,则此赋值运算符将隐式地执行扩大转换而不是收缩转换。
This assignment operator implicitly performs widening but not narrowing conversions if the compilation environment enforces strict semantics.
如果编译环境强制使用严格的语义,则此赋值运算符将隐式地执行扩大转换而不是收缩转换。
应用推荐