diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 15:49:08 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-19 15:49:08 +0300 |
commit | db24036313717458c6995e087b1db1379867aab8 (patch) | |
tree | 15508ad2be39d354fe22430bbb85b78d1bc6f81b /moses/Util.h | |
parent | b9f216cc96fda35fad9983037f02100e611c55fc (diff) |
share bitmaps
Diffstat (limited to 'moses/Util.h')
-rw-r--r-- | moses/Util.h | 9 |
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: |