update variable in const function c 2b 2b

Solutions on MaxInterview for update variable in const function c 2b 2b by the best coders in the world

showing results for - "update variable in const function c 2b 2b"
Mika
17 May 2016
1//declare x mutable
2class A (){
3   mutable int x;
4public:
5   void func () const {
6      //change value of x here
7   }
8}; 
similar questions
queries leading to this page
update variable in const function c 2b 2b