auto 一般忽略顶层const const int i; auto a=i; //a为int类型,不会推导出常量,忽略顶层const const auto b=i;//b为const int类型 decltype 解引用和括号 int b,*I=&b; decltype (b) a;//a为int类型 decltype (*i) c;//c为int & decltype ((b)) d;//d也为int &;