summaryrefslogtreecommitdiff
path: root/mteval
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-05-27 22:28:34 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-05-27 22:28:34 -0400
commite735410f71c7bc13399f01b652578d93cbd99277 (patch)
treea4cc32aca32cd6d882a2cef8503b1362c10f9882 /mteval
parent72d85a039e7334c8280cc82a4ae78628d4867c8c (diff)
kbest repo
Diffstat (limited to 'mteval')
-rw-r--r--mteval/ns.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mteval/ns.h b/mteval/ns.h
index 4e4c6975..ac7b0a23 100644
--- a/mteval/ns.h
+++ b/mteval/ns.h
@@ -56,6 +56,11 @@ class SufficientStats {
}
void Encode(std::string* out) const;
+ void swap(SufficientStats& other) {
+ id_.swap(other.id_);
+ fields.swap(other.fields);
+ }
+
std::string id_;
std::vector<float> fields;
};