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

int* a = new int(10);

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

原文地址:https://www.cnblogs.com/pjl1119/p/8271294.html