Fleet  0.0.9
Inference in the LOT
Singleton.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <assert.h>
4 
5 template<typename T>
6 class Singleton {
7  static bool exists;
8 public:
10  assert( (not exists) && "*** You have tried to create more than one instance of a Singleton class.");
11  exists = true;
12  }
13 
14 };
15 
16 template<typename T> bool Singleton<T>::exists = false;
Definition: Singleton.h:6
Singleton()
Definition: Singleton.h:9