summaryrefslogtreecommitdiff
path: root/code/core/max.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/core/max.h')
-rw-r--r--code/core/max.h13
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
contact: Jan Huwald // Impressum