MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ operator=() [2/2]

Event & MayaFlux::Vruta::Event::operator= ( Event &&  other)
noexcept

Move assignment operator.

Parameters
otherEvent to move from
Returns
Reference to this Event

Transfers ownership of the coroutine from other to this Event. After the move, other no longer references any coroutine.

Definition at line 47 of file Event.cpp.

48{
49 if (this != &other) {
50 if (m_handle && m_handle.address())
51 m_handle.destroy();
52
53 m_handle = std::exchange(other.m_handle, {});
54 }
55 return *this;
56}
std::coroutine_handle< promise_type > m_handle
Definition Event.hpp:225