donut-decomp/include/hel/common/PrivateSingleton.hpp
2021-10-20 07:58:59 +02:00

13 lines
No EOL
286 B
C++

#pragma once
#include <hel/common/NonCopyable.hpp>
namespace hel {
namespace common {
template <class T> struct PrivateSingleton : NonCopyable {
static bool isExist_;
inline PrivateSingleton() { isExist_ = true; }
~PrivateSingleton();
};
} // namespace common
} // namespace hel