donut-decomp/include/hel/common/PrivateSingleton.hpp

13 lines
286 B
C++
Raw Permalink Normal View History

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_;
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