From 65e5edaa8aa920c7502dd78a71f29a538b0b75f0 Mon Sep 17 00:00:00 2001 From: graehl Date: Wed, 11 Aug 2010 02:55:42 +0000 Subject: sparse vector ::swap git-svn-id: https://ws10smt.googlecode.com/svn/trunk@513 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/sparse_vector.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/sparse_vector.h') diff --git a/utils/sparse_vector.h b/utils/sparse_vector.h index 207489c5..e8e9c2f7 100644 --- a/utils/sparse_vector.h +++ b/utils/sparse_vector.h @@ -412,6 +412,11 @@ private: MapType values_; }; +template +inline void swap(SparseVector &a,SparseVector &b) { + a.swap(b); +} + //like a pair but can live in a union, because it lacks default+copy ctors, dtor. template struct feature_val { -- cgit v1.2.3