FastLED
3.9.15
Loading...
Searching...
No Matches
◆
operator=()
[4/4]
template<typename... Types>
Variant
&
fl::Variant
< Types >::operator=
(
Variant
< Types > &&
other
)
inline
noexcept
Definition at line
58
of file
variant.h
.
58
{
59
if
(
this
!= &
other
) {
60
reset
();
61
if
(!
other
.
empty
()) {
62
move_construct_from
(
other
);
63
// After moving, mark other as empty to prevent destructor calls on moved-from objects
64
other
.
_tag
=
Empty
;
65
}
66
}
67
return
*
this
;
68
}
fl::Variant::Empty
static constexpr Tag Empty
Definition
variant.h:14
fl::Variant::reset
void reset() noexcept
Definition
variant.h:96
fl::Variant::empty
bool empty() const noexcept
Definition
variant.h:104
fl::Variant::_tag
Tag _tag
Definition
variant.h:296
fl::Variant::move_construct_from
void move_construct_from(Variant &other) noexcept
Definition
variant.h:245
fl::Variant
Definition
variant.h:11
fl
Variant
Generated on Fri Aug 22 2025 20:59:37 for FastLED by
1.13.2