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)prvalue,xvalue和lvalue与decltype的关系: decltype(auto) c++14在递归模板中延迟返回类型推断([Delaying return type deduction in recursive templates](https://stackoverflow.com/questions/24109737/what-are-some-uses-of-decltypeauto#Delaying-return-type-deduction-in-recursive-templates)) 前言 从初始化器和表达式中推导( 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