...ana创建项目2 项目 右键 ... RVO-编译器返回值优化 RVO--Return Value Optimization概述返回值优化(Return Value Optimization,简称RVO)是一种编译器优化机制:当函数需要返回一个对象的时候,如果自己创建一个临时对象 ..
基于134个网页-相关网页
...用 c 来初始化时 对象 d 创建并用函数返回的临时对象初始化时 一般的编译器都可以做到返回值优化(Return Value Optimization, RVO),即直接把返回值建立在函数返回值要初始化或者赋值的对象上(上例中的对象 d)。
基于8个网页-相关网页
Named Return Value Optimization 具名传回值最佳化 ; 具名返回值优化 ; 命名返回值优化
以上来源于: 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.
将输出语句添加到构造函数、析构函数和复制构造函数,以查看在运行程序时命名返回值优化的效果。
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值以指示这一点)。
应用推荐