diff options
author | ulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d> | 2014-06-03 13:30:56 +0000 |
---|---|---|
committer | ulrich.bauer@gmail.com <ulrich.bauer@gmail.com@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d> | 2014-06-03 13:30:56 +0000 |
commit | e88ddfc7854ee6eaa234ecffb4743522d76bf564 (patch) | |
tree | 6c2cafdd82a50b2c37df5a500fa7dc9476dae3e0 /include/phat/representations | |
parent | b954f5b493c0ced69a18d75c6df4a3d84ccbef9f (diff) |
swap
git-svn-id: https://phat.googlecode.com/svn/trunk@181 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include/phat/representations')
-rw-r--r-- | include/phat/representations/vector_vector.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/phat/representations/vector_vector.h b/include/phat/representations/vector_vector.h index 4aee533..15dbfb1 100644 --- a/include/phat/representations/vector_vector.h +++ b/include/phat/representations/vector_vector.h @@ -95,8 +95,7 @@ namespace phat { temp_col.erase(col_end, temp_col.end());
- target_col = temp_col;
- temp_col.clear();
+ target_col.swap(temp_col);
}
};
}
|