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-19 15:49:08 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-19 15:49:08 +0300
commitdb24036313717458c6995e087b1db1379867aab8 (patch)
tree15508ad2be39d354fe22430bbb85b78d1bc6f81b /moses/Util.h
parentb9f216cc96fda35fad9983037f02100e611c55fc (diff)
share bitmaps
Diffstat (limited to 'moses/Util.h')
-rw-r--r--moses/Util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/Util.h b/moses/Util.h
index cc0f7314b..e557c2e6d 100644
--- a/moses/Util.h
+++ b/moses/Util.h
@@ -538,6 +538,15 @@ void PrintFeatureWeight(const FeatureFunction* ff);
void ShowWeights();
template<typename T>
+class OrderedComparer
+{
+public:
+ bool operator()(const T* a, const T* b) const {
+ return (*a) < (*b);
+ }
+};
+
+template<typename T>
class UnorderedComparer
{
public: