• Listing 2 shows a piece of code that results in a compile-time error because the copy constructor is private.

    清单2显示产生编译时错误代码部分因为拷贝构造函数私有

    www.ibm.com

  • If you do not write a correct code for the copy constructor, object within a list will have some data members uninitialized.

    如果没有拷贝构造函数正确代码可能造成list对象某些数据成员没有初始化。

    blog.sina.com.cn

  • The copy constructor is a special kind of constructor which creates a new object which is a copy of an existing one, and does it efficiently.

    拷贝构造函数特别构造函数,用于复制已经存在对象生成对象高效方式。

    www.tqcto.com

  • The only other thing to note in Listing 17 is that the definitions for the copy constructor and operator= methods are not provided.

    清单17注意一点提供copy constructoroperator=方法定义

    www.ibm.com

  • How to call to the copy constructor from the copy-assignment operator?

    如何复制值运算调用复制构造函数

    www.4byte.cn

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

    每个(其实容器内使用)必须至少实现拷贝构造函数(实现运算也是习惯)。

    www.wisestudy.cn

  • The copy constructor is called because you call by value not by reference.

    复制构造函数是因为呼叫价值不是参考

    www.4byte.cn

  • How else could you use that return instruction to create and return an object and yet not use the copy constructor?

    不然怎么使用返回指令创建返回一个对象使用复制构造函数

    www.4byte.cn

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

    返回赋值操作符首先调用复制构造函数基础机制

    www.4byte.cn

  • Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.

    放在单独功能调用析构函数拷贝构造函数运算符需要功能

    www.4byte.cn

  • Why does this code invoke the copy constructor?

    为什么段代码调用复制构造函数

    www.4byte.cn

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

    为了管理具有指针成员必须定义复制控制成员复制构造函数赋值操作符构函数

    www.chineselinuxuniversity.net

  • C + + : which is the appropriate constructor to be called: the constructor or the copy constructor?

    C + +:称为适当构造函数构造函数复制构造函数?

    www.4byte.cn

  • Why doesn't the copy constructor get called?

    为什么复制构造函数调用

    www.4byte.cn

  • 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,请不要使复制构造函数赋值运算符成为模板函数使其成为采用类型的非模板函数

    technet.microsoft.com

  • The first case is redundant, why declare the copy constructor, make it private, and not implement it.

    第一病例多余的,为什么声明拷贝构造函数使私人实现

    www.4byte.cn

  • The compiler is eliding the call (actually, two calls) to the copy constructor.

    编译省略调用实际上复制构造函数调用)。

    www.4byte.cn

  • The noncopyable class definition presents no surprises, as the copy constructor and operator= are declared private.

    noncopyable定义没有什么令人感到新奇的地方,因为copy constructoroperator=声明为private

    www.ibm.com

  • When it can do so, the compiler is permitted (but not obligated) to skip the copy constructor and create the object directly.

    这种用法支持编译允许(制强)跳过复制构造函数直接创建对象

    www.51h8.com

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

    运算符应用一个初始化对象不是拷贝构造函数情况下

    www.4byte.cn

  • The C++ standard allows for the copy constructor to be elided in certain situations.

    c++标准允许拷贝构造函数省略某些情况下

    www.4byte.cn

  • Again, if you don't provide a copy constructor, the compiler generates one for you, again just copying the members using the copy constructor.

    次,如果提供拷贝构造函数,编译生成复制使用拷贝构造函数成员

    www.4byte.cn

  • The copy constructor is called when a not yet existing!

    调用拷贝构造函数存在

    www.4byte.cn

  • Your first solution conveys to the reader that the copy-constructor is private and is not to be used.

    第一个解决方案读者传达拷贝构造函数私有的,不能使用

    www.4byte.cn

  • The traditional way to solve this is to declare the copy-constructor private and to leave it unimplemented.

    传统方式解决这个声明拷贝构造函数私有未实现的。

    www.4byte.cn

  • We all know that the implicit copy constructor operates as follows: default construct all member variables, then assign each member variable the appropriate corresponding value.

    我们知道这个隐式拷贝构造函数操作如下默认构建所有成员变量然后分配每个成员变量相应对应

    www.4byte.cn

  • Is there any way to make the implicit copy constructor use initialization lists? Is there any other way around manually writing the initialization list?

    什么方法可以利用隐式拷贝构造函数初始列表吗?有没有其他方式手动编写初始列表吗?

    www.4byte.cn

  • It exists for all instances, and to attempt to modify it in the class copy constructor makes little sense (unless you are using it to keep some kind of counter of instances).

    存在所有实例试图修改复制构造函数毫无意义(除非保持某种计数器实例)。

    www.4byte.cn

  • It exists for all instances, and to attempt to modify it in the class copy constructor makes little sense (unless you are using it to keep some kind of counter of instances).

    存在所有实例试图修改复制构造函数毫无意义(除非保持某种计数器实例)。

    www.4byte.cn

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

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

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