mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 16:01:19 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
17
src/util/helpers/Singleton.h
Normal file
17
src/util/helpers/Singleton.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
template<typename TType>
|
||||
class Singleton
|
||||
{
|
||||
protected:
|
||||
Singleton() = default;
|
||||
Singleton(const Singleton&) = delete;
|
||||
Singleton(Singleton&&) noexcept = delete;
|
||||
|
||||
public:
|
||||
static TType& instance() noexcept
|
||||
{
|
||||
static TType s_instance;
|
||||
return s_instance;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue