Showing posts with label mutable. Show all posts
Showing posts with label mutable. Show all posts

Jan 16, 2009

mutable and immutable in c++

mutable and immutable in c++
if we have a const function, as we know, we cannot change the variables in this function, if the variable is mutable, we can change this mutable variable
for the mutable and immutable (const) object
http://en.wikipedia.org/wiki/Immutable_object#C.2B.2B