go top

Return value optimization

  • 返回值优化(C++编译优化技术RVO可删除保持函数返回值的临时对象,省略复制构造函数,即使有副作用。函数返回对象实例时,临时对象通过复制构造函数复制目标对象。C++标准允许省略复制构造函数,即使导致程序不同行为,编译器视两个对象为同一具有副作用的对象)

网络释义英英释义

  返回值优化

...ana创建项目2 项目  右键 ... RVO-编译器返回值优化 RVO--Return Value Optimization概述返回值优化(Return Value Optimization,简称RVO)是一种编译器优化机制:当函数需要返回一个对象的时候,如果自己创建一个临时对象 ..

基于134个网页-相关网页

  回值优化

...用 c 来初始化时 对象 d 创建并用函数返回的临时对象初始化时 一般的编译器都可以做到返回值优化Return Value Optimization, RVO),即直接把返回值建立在函数返回值要初始化或者赋值的对象上(上例中的对象 d)。

基于8个网页-相关网页

短语

Named Return Value Optimization 具名传回值最佳化 ; 具名返回值优化 ; 命名返回值优化

Return value optimization

  • abstract: Return value optimization, or simply RVO, is a compiler optimization technique that involves eliminating the temporary object created to hold a function's return value. In C++, it is particularly notable for being allowed to change the observable behaviour of the resulting program.

以上来源于: WordNet

双语例句

  • 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

  • If no index is found, then there are no cached tweets, so there is nothing to show and no optimization can be made on the query (and you return a value of 0 to indicate this).

    如果找到任何索引那么没有缓存tweet所以没有展示的东西,并且没有查询进行优化(返回一个0值指示这一点)。

    youdao

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

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

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