update variable in const function C++
//declare x mutable
class A (){
mutable int x;
public:
void func () const {
//change value of x here
}
};
Are there any code examples left?
New code examples in category C++
//declare x mutable
class A (){
mutable int x;
public:
void func () const {
//change value of x here
}
};