This commit is contained in:
hugy committed 2023-04-27 08:51:22 +08:00
1 parent a4540117e3
commit 4c9a292c77
43 files changed
+12 -13939

No files matched your search

-21
View File
@@ -1,21 +0,0 @@
#ifndef WXHELPER_SINGLETON_H_
#define WXHELPER_SINGLETON_H_
template <typename T>
class Singleton {
protected:
Singleton() {}
~Singleton() {}
Singleton(const Singleton&) = delete;
Singleton& operator=(const Singleton&) = delete;
Singleton(Singleton&&) = delete;
Singleton& operator=(Singleton&&) = delete;
public:
static T& GetInstance() {
static T instance{};
return instance;
}
};
#endif