BAM
Abstract Machine for Bottom-Up Evaluation with the Push Method
Main Page
Related Pages
Classes
Files
File List
File Members
base
min.h
Go to the documentation of this file.
1
// ============================================================================
2
// Project: Deductive Database
3
// Filename: min.h
4
// Purpose: Minimum-Function
5
// Last Change: 04.08.2017
6
// Language: C++
7
// EMail: brass@informatik.uni-halle.de
8
// WWW: http://www.informatik.uni-halle.de/~brass/
9
// Address: Feldschloesschen 15, D-06120 Halle (Saale), GERMANY
10
// Copyright: (c) 2015-2017 by Stefan Brass
11
// License: See file "LICENSE" for copying conditions.
12
// Note: There is no warranty at all - this code may contain bugs.
13
// ============================================================================
14
15
22
//=============================================================================
23
// Include File Frame:
24
//=============================================================================
25
26
#ifndef MIN_INCLUDED
27
#define MIN_INCLUDED
28
29
30
//=============================================================================
31
// Used Types and Macros:
32
//=============================================================================
33
34
#ifndef VER_INCLUDED
35
#include "../base/ver.h"
36
#endif
37
38
#ifndef CHECK_INCLUDED
39
#include "../base/check.h"
40
#endif
41
42
43
//=============================================================================
44
// Template Function:
45
//=============================================================================
46
47
48
//-----------------------------------------------------------------------------
49
// Minium:
50
//-----------------------------------------------------------------------------
51
60
//#define MIN(X,Y) (((X)<=(Y))?(X):(Y))
61
70
template
<
class
T>
71
inline
T
MIN
(T x, T y) {
72
if
(x <= y)
73
return
x;
74
else
75
return
y;
76
}
77
78
79
//=============================================================================
80
// End of Include File:
81
//=============================================================================
82
83
#endif
84
MIN
T MIN(T x, T y)
Definition:
min.h:71
Generated by
1.8.10