Lines 298-311
Link Here
|
298 |
return *this; |
298 |
return *this; |
299 |
} |
299 |
} |
300 |
#ifdef EIGEN_HAVE_RVALUE_REFERENCES |
300 |
#ifdef EIGEN_HAVE_RVALUE_REFERENCES |
301 |
DenseStorage(DenseStorage&& other) |
301 |
DenseStorage(DenseStorage&& other) EIGEN_NOEXCEPT |
302 |
: m_data(std::move(other.m_data)) |
302 |
: m_data(std::move(other.m_data)) |
303 |
, m_rows(std::move(other.m_rows)) |
303 |
, m_rows(std::move(other.m_rows)) |
304 |
, m_cols(std::move(other.m_cols)) |
304 |
, m_cols(std::move(other.m_cols)) |
305 |
{ |
305 |
{ |
306 |
other.m_data = nullptr; |
306 |
other.m_data = nullptr; |
307 |
} |
307 |
} |
308 |
DenseStorage& operator=(DenseStorage&& other) |
308 |
DenseStorage& operator=(DenseStorage&& other) EIGEN_NOEXCEPT |
309 |
{ |
309 |
{ |
310 |
using std::swap; |
310 |
using std::swap; |
311 |
swap(m_data, other.m_data); |
311 |
swap(m_data, other.m_data); |
Lines 369-381
Link Here
|
369 |
return *this; |
369 |
return *this; |
370 |
} |
370 |
} |
371 |
#ifdef EIGEN_HAVE_RVALUE_REFERENCES |
371 |
#ifdef EIGEN_HAVE_RVALUE_REFERENCES |
372 |
DenseStorage(DenseStorage&& other) |
372 |
DenseStorage(DenseStorage&& other) EIGEN_NOEXCEPT |
373 |
: m_data(std::move(other.m_data)) |
373 |
: m_data(std::move(other.m_data)) |
374 |
, m_cols(std::move(other.m_cols)) |
374 |
, m_cols(std::move(other.m_cols)) |
375 |
{ |
375 |
{ |
376 |
other.m_data = nullptr; |
376 |
other.m_data = nullptr; |
377 |
} |
377 |
} |
378 |
DenseStorage& operator=(DenseStorage&& other) |
378 |
DenseStorage& operator=(DenseStorage&& other) EIGEN_NOEXCEPT |
379 |
{ |
379 |
{ |
380 |
using std::swap; |
380 |
using std::swap; |
381 |
swap(m_data, other.m_data); |
381 |
swap(m_data, other.m_data); |
Lines 435-447
Link Here
|
435 |
return *this; |
435 |
return *this; |
436 |
} |
436 |
} |
437 |
#ifdef EIGEN_HAVE_RVALUE_REFERENCES |
437 |
#ifdef EIGEN_HAVE_RVALUE_REFERENCES |
438 |
DenseStorage(DenseStorage&& other) |
438 |
DenseStorage(DenseStorage&& other) EIGEN_NOEXCEPT |
439 |
: m_data(std::move(other.m_data)) |
439 |
: m_data(std::move(other.m_data)) |
440 |
, m_rows(std::move(other.m_rows)) |
440 |
, m_rows(std::move(other.m_rows)) |
441 |
{ |
441 |
{ |
442 |
other.m_data = nullptr; |
442 |
other.m_data = nullptr; |
443 |
} |
443 |
} |
444 |
DenseStorage& operator=(DenseStorage&& other) |
444 |
DenseStorage& operator=(DenseStorage&& other) EIGEN_NOEXCEPT |
445 |
{ |
445 |
{ |
446 |
using std::swap; |
446 |
using std::swap; |
447 |
swap(m_data, other.m_data); |
447 |
swap(m_data, other.m_data); |