diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
commit | 00b209240138660db1ded3ef3870023964ce6e4e (patch) | |
tree | 8ffaec780b060bdc478929aa714b8af2ee760671 /code/core/max.h |
Diffstat (limited to 'code/core/max.h')
-rw-r--r-- | code/core/max.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/code/core/max.h b/code/core/max.h new file mode 100644 index 0000000..490b338 --- /dev/null +++ b/code/core/max.h @@ -0,0 +1,13 @@ +#ifndef MAX_H +#define MAX_H + +template<class L, class R> +inline L max(L l, R r) { + if (l > r) { + return l; + }else{ + return r; + } +} + +#endif // MAX_H |