removing all singletons

This commit is contained in:
2024-09-20 17:29:42 +02:00
parent 8348f9ce7a
commit 1e2705ef06
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__