Fleet
0.0.9
Inference in the LOT
src
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
:
9
Singleton
() {
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
;
Singleton
Definition:
Singleton.h:6
Singleton::Singleton
Singleton()
Definition:
Singleton.h:9
Generated by
1.8.13