• Why doesn't the copy constructor get called?

    为什么复制构造函数调用?

    youdao

  • Why does this code invoke the copy constructor?

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • 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=方法定义

    youdao

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

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

    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

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

  • You do not need a copy constructor, and you need never sweat the gory details of implementing a clone method.

    需要使用复制构造函数并且永远也不需要大汗淋漓地去实现clone方法那些令人惨不忍睹的细节

    youdao

  • Default copy constructor does a very simple operation, they will do a bit-wise (member-wise) copy of an object, which means that the object will be copied bit by bit.

    如果程序员没有提供拷贝构造函数,那么编译器自动生成默认拷贝构造函数。默认的拷贝构造函数会执行简单操作拷贝对象

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • Because a template constructor is never a copy constructor, the presence of such a template does not suppress the implicit declaration of a copy constructor.

    由于模板构造函数终究不是拷贝构造函数,因此这种模板出现并不隐藏原来隐含的拷贝构造函数之声明

    youdao

  • Many developers write the first constructor and then copy and paste the code into other constructors, to satisfy the multiple overrides defined in the class interface.

    很多开发者编写第一构造函数,然后代码复制粘贴其它构造函数中去,满足接口定义多个重载

    youdao

  • You didn't define a copy constructor so a default one was created by the compiler.

    没有定义复制构造函数,默认编译器创建的。

    youdao

  • Even though an implementation is allowed to elide the copy, a viable and accessible copy constructor (or move constructor, if we're talking about a move) should still be present.

    虽然实现允许省略拷贝可行的可访问的拷贝构造函数(移动构造函数,如果我们谈论的是一个移动)应该是仍然存在的。

    youdao

  • Question: Manually writing a copy constructor which initializes each member variable as a copy is very tedious, and verges on ridiculous as the number of member variables grows.

    问题手动编写一个拷贝构造函数初始化每个成员变量作为副本乏味近乎荒谬成员变量数量的增加。

    youdao

  • In the first case, you are essentially declaring a private copy constructor and then not providing any implementation.

    第一情况下基本上声明一个私有拷贝构造函数然后没有提供任何实现。

    youdao

  • The idea is to create a protected copy constructor aside from the default constructor.

    保护想法创建一个拷贝构造函数除了默认构造函数。

    youdao

  • Add output statements to the constructor, destructor and copy constructor to see the effect of the Named Return Value optimization when you run the program.

    输出语句添加构造函数、析构函数复制构造函数,查看运行程序命名返回优化效果

    youdao

  • Add output statements to the constructor, destructor and copy constructor to see the effect of the Named Return Value optimization when you run the program.

    输出语句添加构造函数、析构函数复制构造函数,查看运行程序命名返回优化效果

    youdao

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

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

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