Add move assignment operator to SHalfedge.h

This commit is contained in:
Giles Bathgate 2020-12-13 16:07:45 +00:00
parent 70887f532d
commit 6b9fd0c2df
1 changed files with 16 additions and 0 deletions

View File

@ -114,6 +114,22 @@ class SHalfedge_base {
return *this;
}
SHalfedge_base<Refs>& operator=(SHalfedge_base<Refs>&& e) noexcept
{
source_ = std::move(e.source_);
sprev_ = std::move(e.sprev_);
snext_ = std::move(e.snext_);
incident_sface_ = std::move(e.incident_sface_);
twin_ = std::move(e.twin_);
prev_ = std::move(e.prev_);
next_ = std::move(e.next_);
facet_ = std::move(e.facet_);
info_ = 0;
mark_ = std::move(e.mark_);
circle_ = std::move(e.circle_);
return *this;
}
Mark& mark() { return mark_; }
const Mark& mark() const { return mark_; }