返回类型后置语法,auto和decltype的结合使用

不过,C++ 14 开始,像这样的简单的模板函数,其返回值使用 auto 也是可以的,不需要decltype

posted @ 2021-09-06 14:20  youlj  阅读(54)  评论(0)    收藏  举报