本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版 | 上一修订版两侧同时换到之后的修订记录 | ||
cs:programming:cpp:courses:cpp_basic_deep:chpt_2 [2024/04/16 15:05] – [decltype] codinghare | cs:programming:cpp:courses:cpp_basic_deep:chpt_2 [2024/04/16 15:06] – [decltype] codinghare | ||
---|---|---|---|
行 400: | 行 400: | ||
==decltype== | ==decltype== | ||
decltype 获取一个表达式,并返回表达式的类型。decltype 与 auto 的区别在于,decltype **不会产生类型退化**。 | decltype 获取一个表达式,并返回表达式的类型。decltype 与 auto 的区别在于,decltype **不会产生类型退化**。 | ||
- | * decltype(val):'' | + | |
+ | * decltype(val):'' | ||
<code cpp> | <code cpp> | ||
//x is an variable name | //x is an variable name |