decltype的参数是左值时,得到一个引用类型

时间:2023-03-09 17:21:34
decltype的参数是左值时,得到一个引用类型

int* a = new int(10);

decltype(*a) 得到的是引用类型:int&

相关文章