摘要: 1 #include <utility> 2 3 struct A 4 { 5 void f() && { } 6 }; 7 8 void g(A &&a) 9 { 10 a.f(); //error, a是左值 11 std::move(a).f(); //fine 12 } 13 14 int 阅读全文
posted @ 2016-03-04 21:54 Qzki 阅读(725) 评论(0) 推荐(0) 编辑