diff options
| author | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-05-27 22:28:34 -0400 | 
|---|---|---|
| committer | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-05-27 22:28:34 -0400 | 
| commit | fc936db02d42cc3978a4cc2017efe7a15c78855d (patch) | |
| tree | a81b77c171f1c1d0a32f98f564d89e7f9966b0c1 /mteval/ns.h | |
| parent | 69593203e6e8df7dad5d8839a74b37bbc7500088 (diff) | |
kbest repo
Diffstat (limited to 'mteval/ns.h')
| -rw-r--r-- | mteval/ns.h | 5 | 
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;  }; | 
