2021-10-19 19:33:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hel/common/NonCopyable.hpp>
|
|
|
|
|
|
|
|
namespace hel {
|
|
|
|
namespace common {
|
|
|
|
template <class T> struct PrivateSingleton : NonCopyable {
|
|
|
|
static bool isExist_;
|
2021-10-20 05:58:59 +00:00
|
|
|
inline PrivateSingleton() { isExist_ = true; }
|
2021-10-19 19:54:41 +00:00
|
|
|
~PrivateSingleton();
|
2021-10-19 19:33:00 +00:00
|
|
|
};
|
|
|
|
} // namespace common
|
|
|
|
} // namespace hel
|