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

◆ ptr() [1/2]

template<typename... Types>
template<typename T>
T * fl::Variant< Types >::ptr ( )
inline

Definition at line 106 of file variant.h.

106 {
107 return is<T>() ? reinterpret_cast<T *>(&_storage) : nullptr;
108 }
char _storage[max_size< Types... >::value]
Definition variant.h:255
bool is() const noexcept
Definition variant.h:102

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

+ Here is the caller graph for this function: