MayaFlux 0.2.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 249 of file Routine.cpp.

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