projects
/
invirt/third/libt4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Build on wheezy, and presumably precise
[invirt/third/libt4.git]
/
lang
/
algorithm.h
1
// compile time version of min and max
2
3
#ifndef algorithm_h
4
#define algorithm_h
5
6
template <int A, int B>
7
struct static_max
8
{
9
static const int value = A > B ? A : B;
10
};
11
12
template <int A, int B>
13
struct static_min
14
{
15
static const int value = A < B ? A : B;
16
};
17
18
#endif