diff options
Diffstat (limited to 'utils/sparse_vector.h')
-rw-r--r-- | utils/sparse_vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <class T> +inline void swap(SparseVector<T> &a,SparseVector<T> &b) { + a.swap(b); +} + //like a pair but can live in a union, because it lacks default+copy ctors, dtor. template <class T> struct feature_val { |