JohnGu

导航

C++ Primer 第二章 学习笔记

在auto一个引用时,auto会忽略顶层const,而保存底层const

decltype(sum()) x = i;  //  I的类型就是sum()返回值的类型

posted on 2017-11-02 15:02  JohnGu  阅读(111)  评论(0编辑  收藏  举报