mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
removing all singletons
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#ifndef __MLX_SINGLETON__
|
||||
#define __MLX_SINGLETON__
|
||||
|
||||
#include <Utils/NonCopyable.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
template <typename T>
|
||||
class Singleton : public NonCopyable
|
||||
{
|
||||
public:
|
||||
inline static T& Get()
|
||||
{
|
||||
static T instance;
|
||||
return instance;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // __MLX_SINGLETON__
|
||||
Reference in New Issue
Block a user