MayaFlux 1.0.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 231 of file Routine.cpp.

232{
233 if (this != &other) {
234 m_handle = std::exchange(other.m_handle, nullptr);
235 }
236 return *this;
237}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:644