SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
include
Game
SingletonHolder.hpp
1
#pragma once
2
3
template
<
typename
T>
4
class
SingletonHolder
{
5
public
:
6
static
T* get() {
7
return
sInstance;
8
}
9
10
static
void
set(T *p) {
11
sInstance = p;
12
}
13
14
static
bool
exists() {
15
return
sInstance !=
nullptr
;
16
}
17
18
static
T* sInstance;
19
};
20
21
template
<
typename
T>
22
T*
SingletonHolder<T>::sInstance
;
SingletonHolder
Definition
SingletonHolder.hpp:4
Generated by
1.10.0