feat: 3.9.5.81 基础收发功能

This commit is contained in:
hugy committed 2023-06-26 18:23:47 +08:00
1 parent 66ea9d5428
commit 5a9f91b425
38 files changed
+21363 -28

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#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