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

阅读 49

2022-02-09

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)

0 0 举报