• If a class defines a copy constructor, acopy assignment operator, or a destructor, then it should define all three.

    假定一个类界讲了拷贝机闭函数、赋值操纵符、析构函数中的一个,那么一样平常需供齐数界讲那仨函数。

    youdao

  • Now, try using a copy construction and operator assignment for class a, declared in Listing 15.

    现在,尝试为类a使用一个复制结构和运算符赋值,在清单15中声明该类。

    youdao

  • Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.

    赋值操作符把右边的东西,复制到左边。

    youdao

  • 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.

    每个类(其实例要在容器内使用)必须至少实现拷贝构造函数(实现赋值运算符,也是好习惯)。

    youdao

  • To manage a class with pointer members, we must define all three copy-control members: the copy constructor, assignment operator, and the destructor.

    为了管理具有指针成员的类,必须定义三个复制控制成员:复制构造函数、赋值操作符和析构函数。

    youdao

  • To resolve C2299, do not make the copy constructor or assignment operator a template function, but rather a non-template function that takes a class type.

    若要解决C2299,请不要使复制构造函数或赋值运算符成为模板函数,而使其成为采用类类型的非模板函数。

    youdao

  • When I return by value from an assignment operator, firstly what is the mechanism and basis of calling the copy constructor?

    当我返回值赋值操作符,首先是调用复制构造函数为基础的机制?

    youdao

  • The assignment operator is applied on a initialized object, but this is not the case in the copy constructor.

    赋值运算符是应用于一个初始化的对象,但这并不是拷贝构造函数的情况下。

    youdao

  • The assignment operator is applied on a initialized object, but this is not the case in the copy constructor.

    赋值运算符是应用于一个初始化的对象,但这并不是拷贝构造函数的情况下。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定