summaryrefslogtreecommitdiff
path: root/utils/best.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/best.h')
-rwxr-xr-xutils/best.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/best.h b/utils/best.h
index 689e7600..ed15e0be 100755
--- a/utils/best.h
+++ b/utils/best.h
@@ -5,6 +5,10 @@
typedef MaxPlus<double> best_t;
+inline bool better(best_t const& a,best_t const& b) {
+ return a.v_>b.v_; // intentionally reversed, so default min-heap, sort, etc. put best first.
+}
+
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.
}