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

◆ copy_construct_from()

template<typename... Types>
void fl::Variant< Types >::copy_construct_from ( const Variant< Types > & other)
inlineprivate

Definition at line 196 of file variant.h.

196 {
197 using Fn = void (*)(void *, const Variant &);
198 static constexpr Fn table[] = {&Variant::template copy_fn<Types>...};
199 table[other._tag - 1](&_storage, other);
200 _tag = other._tag;
201 }
char _storage[max_size< Types... >::value]
Definition variant.h:255
Variant() noexcept
Definition variant.h:16
static void copy_fn(void *storage, const Variant &other)
Definition variant.h:204

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

+ Here is the caller graph for this function: