这正是 C++ 对常量性(constness)的定义,因此 const 成员函数不可以更改对象内任何 non-static 成员变量。
基于12个网页-相关网页
conceptual constness 概念上的常量性 ; 概念常量论
bitwise constness 二进制位常量性
physical constness 物理常量性
cast away the constness 来移除对象的常量性 ; 通常被用来将对象的常量性转除
cast away constness 强制移除常量性
应用推荐
模块上移
模块下移
不移动