diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-06-17 10:42:46 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-06-17 10:42:46 +0300 |
commit | 7031992caa2bd850d2442ae99b697f01194046db (patch) | |
tree | 6ce1d47ac6a2f188b7ea7618dfaf748fecc5fa6b /phrase-extract | |
parent | 127b860c6a7b54daa9b8808006835410510241aa (diff) |
use c++11 unordered set code
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/ScoreFeatureTest.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phrase-extract/ScoreFeatureTest.cpp b/phrase-extract/ScoreFeatureTest.cpp index 51d4e1297..9497414be 100644 --- a/phrase-extract/ScoreFeatureTest.cpp +++ b/phrase-extract/ScoreFeatureTest.cpp @@ -25,7 +25,7 @@ #include <boost/test/test_tools.hpp> #include <boost/test/unit_test.hpp> -#include <boost/assign/list_of.hpp> +#include <unordered_set> using namespace MosesTraining; using namespace std; @@ -95,5 +95,15 @@ BOOST_AUTO_TEST_CASE(manager_config_domain) ( {"--SparseDomainIndicator","/dev/null"}); checkDomainConfigured<SparseSubsetDomainFeature> ( {"--SparseDomainSubset","/dev/null"}); + + unordered_set<int> s; + s.insert(4); + s.insert(7); + s.insert(4); + s.insert(1); + + for (auto i: s) { + cerr << i << " "; + } } |