summaryrefslogtreecommitdiff
path: root/utils/best.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/best.h')
-rwxr-xr-xutils/best.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/best.h b/utils/best.h
new file mode 100755
index 00000000..8ff896bb
--- /dev/null
+++ b/utils/best.h
@@ -0,0 +1,13 @@
+#ifndef UTILS__BEST_H
+#define UTILS__BEST_H
+
+#include "max_plus.h"
+
+typedef MaxPlus<double> best_t;
+
+inline bool operator <(best_t const& a,best_t const& b) {
+ return a.v_>b.v_; // intentionally reversed, so default min-heap, sort, etc. put best first.
+}
+
+
+#endif