摘要:
1.写一个头文件(仅头文件) #ifndef _SINGLETON_H_#define _SINGLETON_H_ template <typename T>class Singleton{public: static T* getInstance() { static T s_instance; 阅读全文
摘要:
1.写一个头文件(仅头文件) #ifndef _SINGLETON_H_#define _SINGLETON_H_ template <typename T>class Singleton{public: static T* getInstance() { static T s_instance; 阅读全文
|