FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator=() [4/4]

template<typename... Types>
Variant & fl::Variant< Types >::operator= ( Variant< Types > && other)
inlinenoexcept

Definition at line 58 of file variant.h.

58 {
59 if (this != &other) {
60 reset();
61 if (!other.empty()) {
63 // After moving, mark other as empty to prevent destructor calls on moved-from objects
65 }
66 }
67 return *this;
68 }
static constexpr Tag Empty
Definition variant.h:14
void reset() noexcept
Definition variant.h:96
bool empty() const noexcept
Definition variant.h:104
void move_construct_from(Variant &other) noexcept
Definition variant.h:245