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

◆ destroy_fn()

template<typename... Types>
template<typename T>
static void fl::Variant< Types >::destroy_fn ( void * storage)
inlinestaticprivate

Definition at line 221 of file variant.h.

221 {
222 // Use bit_cast_ptr for safe type-punning on properly aligned storage
223 // The storage is guaranteed to be properly aligned by alignas(max_align<Types...>::value)
225 typed_ptr->~T();
226 }
To * bit_cast_ptr(void *storage) noexcept
Definition bit_cast.h:54