diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 03:02:38 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 03:02:38 +0300 |
commit | 55698d15bca43c13371f3b12b080685a0e1ac4c2 (patch) | |
tree | 213862625aab9a67da6bd04a526dc8cd165ea635 /moses/Hypothesis.h | |
parent | b6cc320b72aec8fd035521864c35052182b52851 (diff) |
templatize Comparer for unordered maps/set
Diffstat (limited to 'moses/Hypothesis.h')
-rw-r--r-- | moses/Hypothesis.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/moses/Hypothesis.h b/moses/Hypothesis.h index ba03cb663..07c69379b 100644 --- a/moses/Hypothesis.h +++ b/moses/Hypothesis.h @@ -319,18 +319,5 @@ struct CompareHypothesisTotalScore { #define FREEHYPO(hypo) delete hypo #endif -class HypothesisRecombinationUnordered -{ -public: - size_t operator()(const Hypothesis* hypo) const { - return hypo->hash(); - } - - bool operator()(const Hypothesis* hypoA, const Hypothesis* hypoB) const { - return (*hypoA) == (*hypoB); - } - -}; - } #endif |