mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
17 lines
488 B
C++
17 lines
488 B
C++
#ifndef COMMON_INSTANCE_T_SINGLETON_INSTANCE_ID_HPP
|
|
#define COMMON_INSTANCE_T_SINGLETON_INSTANCE_ID_HPP
|
|
|
|
#include "common/instance/TInstanceId.hpp"
|
|
#include "common/instance/TInstanceIdTable.hpp"
|
|
|
|
template <class T, size_t offset>
|
|
class TSingletonInstanceId : public TInstanceId<T> {
|
|
public:
|
|
// Static variables
|
|
static TInstanceIdTable<T, offset> s_idTable;
|
|
};
|
|
|
|
template <class T, size_t offset>
|
|
TInstanceIdTable<T, offset> TSingletonInstanceId<T, offset>::s_idTable;
|
|
|
|
#endif
|