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

◆ move_construct_from()

template<typename... Types>
void fl::Variant< Types >::move_construct_from ( Variant< Types > & other)
inlineprivatenoexcept

Definition at line 209 of file variant.h.

209 {
210 using Fn = void (*)(void *, Variant &);
211 static constexpr Fn table[] = {&Variant::template move_fn<Types>...};
212 table[other._tag - 1](&_storage, other);
213 _tag = other._tag;
214 other.reset();
215 }
char _storage[max_size< Types... >::value]
Definition variant.h:255
Variant() noexcept
Definition variant.h:16
void reset() noexcept
Definition variant.h:92
static void move_fn(void *storage, Variant &other)
Definition variant.h:217

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

+ Here is the caller graph for this function: