src: Move certain headers in common

This commit is contained in:
GPUCode 2023-11-05 13:41:10 +02:00
parent 6e28ac711f
commit 17aefc1aef
73 changed files with 98 additions and 106 deletions

View file

@ -1,21 +0,0 @@
#pragma once
#include <memory>
template <class T>
class singleton {
public:
static T* instance() {
if (!m_instance) {
m_instance = std::make_unique<T>();
}
return m_instance.get();
}
protected:
singleton();
~singleton();
private:
static inline std::unique_ptr<T> m_instance{};
};