blob: f8ce4996a7af22eb160544ce8a3008812114634d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#if !defined(HISTORYSTATS_GUARD_UTILS_PATTERN_H)
#define HISTORYSTATS_GUARD_UTILS_PATTERN_H
namespace pattern
{
template<typename T_>
class NotCopyable
{
private:
NotCopyable(const NotCopyable&);
const NotCopyable& operator =(const NotCopyable&);
protected:
NotCopyable()
{
}
~NotCopyable()
{
}
};
template<typename T_>
class NotInstantiable
{
private:
NotInstantiable(const NotInstantiable&);
const NotInstantiable& operator =(const NotInstantiable&);
protected:
NotInstantiable();
~NotInstantiable()
{
}
};
}
#endif // HISTORYSTATS_GUARD_UTILS_PATTERN_H
|