会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
python我的最爱
坚持每天分享一个深度学习的知识点
博客园
首页
新随笔
联系
订阅
管理
2021年8月9日
C++基础-auto(自动分配属性)和decltype(指定分配属性)
摘要: 1.atuo 自动分配属性,但是不能区分常量, decltype可以区分常量 const vector<int> myint{1, 2, 3, 4, 5}; auto inta = myint[0]; inta = 20; decltype(myint[0]) intd = 1; intd = 2;
阅读全文
posted @ 2021-08-09 23:20 python我的最爱
阅读(139)
评论(0)
推荐(0)
编辑