Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T>
- class Singleton {
- public:
- Singleton() {}
- virtual ~Singleton() {}
- static T* GetInstance() {
- static T _Instance;
- return &_Instance;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement