---------------
Christof.Meerwald@ freec++.prog

home
> prog
>> freecpp
>>> mutable

translate to German (by SYSTRAN)

Mutable Keyword

See 7.1.1 "Storage class specifiers" [dcl.stc] of the C++ standard.

Also see Concrete const and abstract const @ corfield.org.

> mutable.cpp:

struct A
{
  A()
    : a_(0)
  { }

  inline void a(int a) const
  {
    a_ = a;
  }

 private:
  mutable int a_;
};


int main()
{
  const A a;
  a.a(0);

  return 0;
}
---------------

This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.

Revision: 1.4, cmeerw.org/prog/freecpp/mutable.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org