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

◆ destroy_current()

template<typename... Types>
void fl::Variant< Types >::destroy_current ( )
inlineprivatenoexcept

Definition at line 213 of file variant.h.

213 {
214 using Fn = void (*)(void *);
215 static constexpr Fn table[] = {&Variant::template destroy_fn<Types>...};
216 if (_tag != Empty) {
217 table[_tag - 1](&_storage);
218 }
219 }
char _storage[max_size< Types... >::value]
Definition variant.h:294
static constexpr Tag Empty
Definition variant.h:14
static void destroy_fn(void *storage)
Definition variant.h:221

Referenced by fl::Variant< fl::span< CRGB >, fl::vector< CRGB, fl::allocator_psram< CRGB > > >::reset().

+ Here is the caller graph for this function: