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 245 of file Routine.cpp.

246{
247 if (this != &other) {
248 m_handle = std::exchange(other.m_handle, nullptr);
249 }
250 return *this;
251}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:654