Added swap method to Values

release/4.3a0
Richard Roberts 2012-04-05 02:45:45 +00:00
parent 7a41a1c7e4
commit 48e277a095
1 changed files with 3 additions and 0 deletions

View File

@ -393,6 +393,9 @@ namespace gtsam {
/** Replace all keys and variables */
Values& operator=(const Values& rhs);
/** Swap the contents of two Values without copying data */
void swap(Values& other) { values_.swap(other.values_); }
/** Remove all variables from the config */
void clear() { values_.clear(); }