- 946 名前:デフォルトの名無しさん mailto:sage [2005/09/15(木) 22:41:25 ]
- template<class T>
class Foo { public: ...; private: class Bar { public: ...; bool operator()(const Bar& l, const Bar&r) const; private: T m_value; int misc_info; }; std::multiset<Bar, Bar::Comp> m_bars; }; m_bars の先頭・末尾に番人(misc_value などは他のメ ンバと同様にアクセス可能にしたもの)を導入したいの ですが、どういうアプローチで作れば良いでしょうか?
|

|