FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ destroy_current()

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

Definition at line 183 of file variant.h.

183 {
184 using Fn = void (*)(void *);
185 static constexpr Fn table[] = {&Variant::template destroy_fn<Types>...};
186 if (_tag != Empty) {
187 table[_tag - 1](&_storage);
188 }
189 }
char _storage[max_size< Types... >::value]
Definition variant.h:255
static constexpr Tag Empty
Definition variant.h:12
static void destroy_fn(void *storage)
Definition variant.h:191

Referenced by fl::Variant< const CRGBPalette16 *, const CRGBPalette32 *, const CRGBPalette256 *, GradientFunction >::reset().

+ Here is the caller graph for this function: