go top

copy-initialization

网络释义

  复制初始化

int i=9;//复制初始化(copy-initialization):创建对象,把9先复制给一个临时变量,再由临时变量复制给i,效率不及直接初始化。

基于58个网页-相关网页

  拷贝初始化

在大多数情况下,这是没有错的,因为这本身也是一种初始化方式——拷贝初始化Copy-initialization)。如同很多定义了拷贝构造函数的类对象一样,这种方式也能完成初始化。

基于12个网页-相关网页

短语

copy initialization 拷贝初始化

双语例句

  • For objects of class type, copy-initialization can be used only when specifying a single argument or when we explicitly build a temporary object to copy.

    对于对象指定单一的实或者为了拷贝明确构建临时对象,才能使用拷贝初始化。

    youdao

  • There are subtle differences between copy - and direct-initialization when initializing objects of a class type.

    初始类型对象时,复制初始化直接初始化之间差别很微妙的

    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

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

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

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