FastLED
3.9.15
Loading...
Searching...
No Matches
◆
visit_fn_const()
template<typename... Types>
template<typename T, typename Visitor>
static void
fl::Variant
< Types >::visit_fn_const
(
const void *
storage
,
Visitor &
v
)
inline
static
private
Definition at line
205
of file
variant.h
.
205
{
206
// Use bit_cast_ptr for safe type-punning on properly aligned storage
207
// The storage is guaranteed to be properly aligned by alignas(max_align<Types...>::value)
208
const
T
*
typed_ptr
=
fl::bit_cast_ptr<const T>
(
storage
);
209
v
.accept(*
typed_ptr
);
210
}
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