move constructor / move assignment doc strings

This commit is contained in:
Charles Schlosser
2024-12-04 17:42:20 +00:00
committed by Rasmus Munk Larsen
parent 77a073aaa8
commit 5e8916050b
3 changed files with 14 additions and 2 deletions

View File

@@ -473,7 +473,9 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::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;