常见问题 RVO和std::move都能减少对象拷贝时的开销,那他们到底是什么与什么的关系叫? talk is cheap, show me the code! 以下测试结果均在gcc 4.8.4下进行。 如下代码所示:test_1.cpp 场景一【函数返回非RVO】 class Obj { public: Obj() { printf("construct \n"); } ~Obj() { printf("destructor\n"); } Obj(const Obj& o) { printf("