go top

copy construction

网络释义

  拷贝构造

注意在这种情况下,编译器通常可以(但不是必须要)对其进行优化,适当的处理拷贝构造(Copy Construction)操作(一般是省略掉拷贝构造过程)。如果进行了优化,则一定要保证拷贝构造函数(Copy Constructor)的可达性。

基于44个网页-相关网页

  复制构造

复制构造(copy construction)和复制赋值(copy assignment)是两种不同的操作。

基于16个网页-相关网页

  拷贝构造函数

copy construction(拷贝构造函数)(用于创建 temp)

基于14个网页-相关网页

有道翻译

copy construction

复制建筑

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

双语例句

  • Now, try using a copy construction and operator assignment for class a, declared in Listing 15.

    现在,尝试为类a使用一个复制结构和运算符赋值,在清单15中声明该类。

    youdao

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

    注意:实际上在这种情况下,编译器是会对拷贝构造进行优化的。

    youdao

  • Now, for classes that store large amounts of data, this method may not be the most efficient way to swap data, because swap involves one copy construction and two assignments.

    现在,对于存储大量数据的类,此方法可能不是交换数据的最有效方法,因为swap涉及到一个copy construction和两次赋值。

    youdao

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

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

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