2010-08-01から1ヶ月間の記事一覧

mutable

C++のキーワードmutableを知っていますか? これはクラスのメンバを定義する時につかう修飾子です。例えばこんな感じ class Test { public: int index_; mutable double value_; public: Test(int arg = 0) : index_(arg), value_(0.0) {} }; mutable修飾子…