class Singleton
{
public:
static Singleton* Instance();
protected:
Singleton();
private:
static Singleton* _Instance;
}
Singleton Singleton::Instance()
{
if(_Instance == 0)
_Instance = new Singleton;
return _Instance;
}
こんな感じかな。。
多分、2つ以上の作成は不可能のはず。