摘要:
1 template<class T> 2 class Counted 3 { 4 public: 5 class TooManyObjects{} 6 static int objectCount(){ return numObjects; } 7 protected: 8 Counted(); 9 Counted(const Counted&);10 ~Counted() { --numObjects; }11 private:12 static int numObje... 阅读全文