Swaps the values of \c *this and \a other. * Overloaded for performance: this version performs a \em shallow swap by swaping pointers and attributes only. * \sa SparseMatrixBase::swap() */
| 234 | * \sa SparseMatrixBase::swap() |
| 235 | */ |
| 236 | inline void swap(SparseVector& other) |
| 237 | { |
| 238 | std::swap(m_size, other.m_size); |
| 239 | m_data.swap(other.m_data); |
| 240 | } |
| 241 | |
| 242 | inline SparseVector& operator=(const SparseVector& other) |
| 243 | { |
no test coverage detected