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

◆ visit_fn()

template<typename... Types>
template<typename T, typename Visitor>
static void fl::Variant< Types >::visit_fn ( void * storage,
Visitor & v )
inlinestaticprivate

Definition at line 197 of file variant.h.

197 {
198 // Use bit_cast_ptr for safe type-punning on properly aligned storage
199 // The storage is guaranteed to be properly aligned by alignas(max_align<Types...>::value)
201 v.accept(*typed_ptr);
202 }
To * bit_cast_ptr(void *storage) noexcept
Definition bit_cast.h:54