0
点赞
收藏
分享

微信扫一扫

C++11,14,17中auto和decltype相关知识及拓展

读思意行 2022-02-09 阅读 48

C++11,14,17auto和decltype相关知识及拓展


前言


从初始化器和表达式中推导( Deduction from Initializers and Expressions)


auto类型说明符


复合类型,常量和auto


进一步探讨auto类型说明符


auto与右值引用


推导返回类型 c++14


可推导的非类型参数(Deducible Nontype Parameter)until c++17


用decltype表示表达式的类型(Expressing the Type of an Expression with decltype)



decltype(auto) c++14


举报

相关推荐

0 条评论