[Effective C++, 学习总结] 03 尽可能使用const

关键字const,你可以用它在classes外部修饰global或namespace作用域中的常量,或修饰文件、函数、或区块作用域(block scope)中被声明 为static的对象。 也可以用它修饰classes内部的static或non-static成员变量。 如果const出现在星号左边,
posted @ 2019-09-10 17:09  淡若轻风  阅读(91)  评论(0编辑  收藏  举报