summaryrefslogtreecommitdiff
path: root/src/Singleton.h
blob: 6b2214eb37facd22aa808c7166ca271f85f213ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef SINGLETON_H
#define SINGLETON_H

template<typename T>

class Singleton
{
public:
	static T& Ref()
	{
		static T instance;
		return instance;
	}
};

#endif // SINGLETON_H