摘要:
#pragma oncetemplate <typename T>class Singleton{public: static T *GetInstance() { if (NULL == s_ins) { s_ins = new (T)(); atexit(Destory); } return s_ins; }private: static void Destory() { delete s_ins; s_ins = NULL; ... 阅读全文
posted @ 2012-10-08 20:24
天天520
阅读(2350)
评论(0)
推荐(0)
浙公网安备 33010602011771号