summaryrefslogtreecommitdiff
path: root/utils/best.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-28 00:44:55 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-28 00:44:55 +0000
commit22bcb46f38fcb285f93510a40b2109c61c7d965f (patch)
treee3dcebdfc5e9abce789baf13848a4aaa07665d86 /utils/best.h
parent79be7e35a72365d861dd4140323275cac52a9e33 (diff)
debugging no lhs trie index built
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@629 ec762483-ff6d-05da-a07a-a48fb63a330f
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.
}