int* a = new int(10);
decltype(*a) 得到的是引用类型:int&
decltype的参数是左值时,得到一个引用类型
猜你喜欢
转载自www.cnblogs.com/pjl1119/p/8271294.html
今日推荐
周排行