void test(int && val) { val=4; } void main() { test(1); std::cin.ignore(); }
是int在test调用时创建的,或者在c ++文字中是默认int类型?
int
test
rvalue c++11
c++11 ×1
rvalue ×1