class CSingleton
{
public:
static CSingleton & GetInstance()
{
static CSingleton instance;
return instance;
}
private:
CSingleton()
{
}
CSingleton(const CSingleton &);
CSingleton & operator = (const CSingleton &);
};
单件模式基类
最新推荐文章于 2022-05-30 11:16:00 发布