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/Word.h | |
parent | b6cc320b72aec8fd035521864c35052182b52851 (diff) |
templatize Comparer for unordered maps/set
Diffstat (limited to 'moses/Word.h')
-rw-r--r-- | moses/Word.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/moses/Word.h b/moses/Word.h index 59f514445..bac69dd0f 100644 --- a/moses/Word.h +++ b/moses/Word.h @@ -150,18 +150,6 @@ inline size_t hash_value(const Word& word) return word.hash(); } -struct WordComparer { - size_t operator()(const Word* word) const { - return word->hash(); - } - - bool operator()(const Word* a, const Word* b) const { - return (*a) == (*b); - } - -}; - - } #endif |