• 知道Set一个拷贝构造函数

    You know that Set has a copy constructor.

    youdao

  • 一个有效拷贝构造函数吗?

    Is this a valid copy constructor?

    youdao

  • 现在拷贝构造函数一个方法

    Now for copy constructor which is a good way.

    youdao

  • 调用拷贝构造函数存在

    The copy constructor is called when a not yet existing!

    youdao

  • 建模构造函数、分析构造函数,以及拷贝构造函数。

    Modeling constructor, destructor, and copy constructor.

    youdao

  • 应该创建一个拷贝构造函数每个对象自己

    You should create a copy constructor for each object yourself.

    youdao

  • 拷贝构造函数需要情况下动态内存分配吗?

    Copy constructor is needed only in the case of dynamic memory allocation?

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • 注意实际上这种情况下编译器拷贝构造进行优化

    Note: the compiler is actually allowed (but not required) to optimize away the copy construction in this kind of situation.

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • 经常渴望拷贝构造函数初始化成员变量作为一个副本,不是默认构造然后分配。

    Often I desire a copy constructor which initializes each member variable as a copy, rather than default constructing and then assigning. e. g.

    youdao

  • 对于对象包含指针情况下,我们编写自己拷贝构造函数这样可以防止上述情况的发生。

    For a situation where an object contain Pointers we have to write our own copy constructor that will prevent situations like those mentioned above.

    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

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

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

    youdao

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

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

    youdao

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

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

    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

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

    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

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

    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

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

    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

  • 第一情况下基本上声明一个私有拷贝构造函数然后没有提供任何实现通过声明他们私人非成员国不能复制

    In the first case, you are essentially declaring a private copy constructor and then not providing any implementation. By declaring them private, non-members cannot copy it.

    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

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

    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

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

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

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