力学笃行系列之C++中的RVO优化,针对返回值为对象时临时对象的优化
#include <iostream>
using namespace std;
class Byte
{
private: int b;
public:
Byte(int bb=0):b(bb){
cout<<"Byte builted,add
原创
2018-12-03 23:00:07 ·
265 阅读 ·
0 评论