removing all singletons

This commit is contained in:
Kbz-8
2024-09-20 17:29:42 +02:00
parent 4ed84d43c1
commit 4e1ae347a8
10 changed files with 59 additions and 49 deletions

View File

@@ -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__