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值以指示这一点)。
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值以指示这一点)。
应用推荐