From 5e8916050ba1801e9ba53816db1b1e65a89a9668 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Wed, 4 Dec 2024 17:42:20 +0000 Subject: [PATCH] move constructor / move assignment doc strings --- Eigen/src/Core/Array.h | 10 ++++++++-- Eigen/src/Core/Matrix.h | 4 ++++ Eigen/src/Core/PlainObjectBase.h | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Array.h b/Eigen/src/Core/Array.h index 2098749c0..fb1f48a2b 100644 --- a/Eigen/src/Core/Array.h +++ b/Eigen/src/Core/Array.h @@ -102,8 +102,13 @@ class Array : public PlainObjectBase::value) { Base::operator=(std::move(other)); diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 8b7f70c16..1ea1a664d 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -255,7 +255,11 @@ class Matrix : public PlainObjectBase::value) { Base::operator=(std::move(other)); diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 8720c4473..22f132982 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -473,7 +473,9 @@ class PlainObjectBase : public internal::dense_xpr_base::type // by making all its constructor protected. See bug 1074. protected: EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr PlainObjectBase() = default; + /** \brief Move constructor */ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr PlainObjectBase(PlainObjectBase&&) = default; + /** \brief Move assignment operator */ EIGEN_DEVICE_FUNC constexpr PlainObjectBase& operator=(PlainObjectBase&& other) EIGEN_NOEXCEPT { m_storage = std::move(other.m_storage); return *this;