|
|
|
| |||||
|
|
| ||||||
|
|
|||||||
|
|
home translate to German (by SYSTRAN)
|
|
|
Mutable KeywordSee 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.3, http://cmeerw.org/prog/freecpp/mutable.html Last modified: Thu Dec 26 14:49:01 2002 |
Christof Meerwald <cmeerw@cmeerw.org> XMPP: cmeerw@cmeerw.org |