auto、decltype 与返回类型推导 | C++
本章覆盖:`auto`;type deduction;top-level const 的推导;reference 的推导;`decltype`;`decltype(auto)`;trailing return type;readability;auto 适合复杂明显类型;不用 auto 隐藏关键业务类型和所有权。
本章知识点
auto- type deduction
- top-level const 的推导
- reference 的推导
decltypedecltype(auto)- trailing return type
- readability
- auto 适合复杂明显类型
- 不用 auto 隐藏关键业务类型和所有权