go top

拷贝构造器

网络释义

  copy constructor

一个拷贝构造器copy constructor)是用来通过一个个体来初始化另外一个个体,而一个拷贝赋值操作符(copy assignment operator)是用来将一个个体的值拷贝到另外一...

基于90个网页-相关网页

有道翻译

拷贝构造器

Copy constructor

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

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

    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

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

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

    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

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

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

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