fre*_*one 0 c++ types auto
我想获取auto变量的类型并强制另一个变量成为这种类型,我不知道c ++是否具有这样的特性或功能.
NuP*_*adi 9
使用decltype.
decltype
auto a = 42; decltype(a) b;
归档时间:
7 年,5 月 前
查看次数:
772 次
最近记录: