Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-18 03:02:38 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-18 03:02:38 +0300
commit55698d15bca43c13371f3b12b080685a0e1ac4c2 (patch)
tree213862625aab9a67da6bd04a526dc8cd165ea635 /moses/Word.h
parentb6cc320b72aec8fd035521864c35052182b52851 (diff)
templatize Comparer for unordered maps/set
Diffstat (limited to 'moses/Word.h')
-rw-r--r--moses/Word.h12
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