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

◆ operator=() [2/2]

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

Move assignment operator.

Parameters
otherGraphicsRoutine to move from
Returns
Reference to this GraphicsRoutine

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

Definition at line 218 of file Routine.cpp.

219{
220 if (this != &other) {
221 m_handle = std::exchange(other.m_handle, nullptr);
222 }
223 return *this;
224}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:623