OpenBarnyard
 
Loading...
Searching...
No Matches
TComparator.h
Go to the documentation of this file.
1#pragma once
2
4
5template <class T>
7{
8public:
9 static TBOOL IsEqual( const T& a, const T& b )
10 {
11 return a == b;
12 }
13
14 static TBOOL IsGreater( const T& a, const T& b )
15 {
16 return a > b;
17 }
18
19 static TBOOL IsLess( const T& a, const T& b )
20 {
21 return a < b;
22 }
23
24 static TBOOL IsLessOrEqual( const T& a, const T& b )
25 {
26 return a <= b;
27 }
28
29 static TBOOL IsGreaterOrEqual( const T& a, const T& b )
30 {
31 return a >= b;
32 }
33};
34
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
bool TBOOL
Definition Typedefs.h:6
static TBOOL IsGreaterOrEqual(const T &a, const T &b)
Definition TComparator.h:29
static TBOOL IsLess(const T &a, const T &b)
Definition TComparator.h:19
static TBOOL IsEqual(const T &a, const T &b)
Definition TComparator.h:9
static TBOOL IsLessOrEqual(const T &a, const T &b)
Definition TComparator.h:24
static TBOOL IsGreater(const T &a, const T &b)
Definition TComparator.h:14