如何使用C++中的mutable关键字
摘要:
mutalbe的中文意思是“可变的,易变的”,跟constant(既C++中的const)是反义词。 mutable member-variable-declaration; 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.(引自. 阅读全文
posted @ 2012-12-06 21:55 Rico Huang 阅读(216) 评论(0) 推荐(0)
浙公网安备 33010602011771号