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

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

    youdao

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

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

    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

  • Modeling constructor, destructor, and copy constructor.

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

    youdao

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

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

    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

  • 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

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

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

    youdao

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

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

    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

  • 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

  • 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

  • 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

  • Understand and master the constructor, destructor, copy constructor, default constructor and default constructor parameters, to define methods and objects of the structure and the role of withdrawal.

    理解掌握构造函数、析构函数、拷贝构造函数、默认构造函数缺省参数构造函数的含义、定义方法以及对象的构造和撤消中的作用

    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

  • A copy constructor was not accessible in a base class and was therefore not generated for a derived class.

    不可访问中的复制构造函数,因此无法派生生成复制构造函数。

    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

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

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

    youdao

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

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

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