单件模式基类

来源:互联网 发布:淘宝店是怎么打广告的 编辑:程序博客网 时间:2024/06/11 01:22
class CSingleton  {  public:      static CSingleton & GetInstance()      {          static CSingleton instance;           return instance;      }  private:      CSingleton()      {      }      CSingleton(const CSingleton &);      CSingleton & operator = (const CSingleton &);  }; 

0 0