-
Notifications
You must be signed in to change notification settings - Fork 0
C++ 11 - Erial's Blog #8
Copy link
Copy link
Open
Description
https://erial21.github.io/2022/10/18/CPP/C++%2011/
auto 使用 auto 必须初始化; auto 根据初始化的值来推导数据类型; 当类型不为引用时,auto 的推导结果将不保留表达式的 const 属性; 当类型为引用时,auto 的推导结果将保留表达式的 const 属性。 限制 不能再函数参数中使用 不能作用于类的非静态成员变量(没有 static 关键字的变量) 不能定义数组; 不能用于模板参数 应用 迭代器 泛型编程 declt
Reactions are currently unavailable