XX CMake Package
Loading...
Searching...
No Matches
XXSingleton.h
Go to the documentation of this file.
1#ifndef XXSingletonH
2#define XXSingletonH
3
4namespace XX
5{
8
9 template <typename InstanceClass>
11 {
12 public:
14 virtual ~Singleton();
15
16 public:
17 static InstanceClass* instance();
18
19 private:
20 static InstanceClass* me;
21 };
22} // namespace XX
23
24#ifndef XXSingletonHPP
25#include "XXSingleton.hpp"
26#endif // NOT XXSingletonHPP
27
28#endif // NOT XXSingletonH
static InstanceClass * instance()
virtual ~Singleton()
Definition XXPopulatedAbstract.h:11