FastLED
3.9.15
Loading...
Searching...
No Matches
◆
move_fn()
template<typename... Types>
template<typename T>
static void
fl::Variant
< Types >::move_fn
(
void *
storage
,
Variant
< Types > &
other
)
inline
static
private
Definition at line
253
of file
variant.h
.
253
{
254
// Use bit_cast_ptr for safe type-punning on properly aligned storage
255
// The storage is guaranteed to be properly aligned by alignas(max_align<Types...>::value)
256
T
*
source_ptr
=
fl::bit_cast_ptr<T>
(&
other
.
_storage
[0]);
257
new
(
storage
)
T
(
fl::move
(*
source_ptr
));
258
}
fl::Variant::_storage
char _storage[max_size< Types... >::value]
Definition
variant.h:294
fl::Variant
Definition
variant.h:11
fl::bit_cast_ptr
To * bit_cast_ptr(void *storage) noexcept
Definition
bit_cast.h:54
fl
Variant
Generated on Fri Aug 22 2025 20:59:37 for FastLED by
1.13.2