关于auto和decltype
摘要:
1 auto会忽略顶层const,保留底层const 2 3 int i = 0; 4 5 const int* const p = &i; 6 7 auto p2 = p; //p2是const int*,不是const int* const 8 //... 阅读全文
posted @ 2014-09-22 22:51 eaxebx 阅读(393) 评论(0) 推荐(1)
posted @ 2014-09-22 22:51 eaxebx 阅读(393) 评论(0) 推荐(1)