Johan is love, Johan is life
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
template <class T>
|
||||
class Singleton
|
||||
{
|
||||
public:
|
||||
static T& getInstance()
|
||||
{
|
||||
static T* t = new T();
|
||||
return *t;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user