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

◆ operator=() [2/2]

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

Move assignment operator.

Parameters
otherSoundRoutine to move from
Returns
Reference to this SoundRoutine

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

Definition at line 54 of file Routine.cpp.

55{
56 if (this != &other) {
57 if (m_handle && m_handle.address())
58 m_handle.destroy();
59
60 m_handle = std::exchange(other.m_handle, {});
61 }
62 return *this;
63}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:460