mutable

来源:互联网 发布:java菜鸟教程下载 编辑:程序博客网 时间:2024/05/04 21:28

 mutable
This keyword can only be applied to non-static and non-const data members of a class. If a data member is declared mutable, then it is legal to assign a value to this data member from a const member function.

又学习了

原创粉丝点击