FastLED
3.9.15
Loading...
Searching...
No Matches
◆
ptr()
[2/2]
template<typename... Types>
template<typename T>
const T *
fl::Variant
< Types >::ptr
(
)
const
inline
Definition at line
117
of file
variant.h
.
117
{
118
if
(!
is<T>
())
return
nullptr
;
119
// Use bit_cast_ptr for safe type-punning on properly aligned storage
120
// The storage is guaranteed to be properly aligned by alignas(max_align<Types...>::value)
121
return
fl::bit_cast_ptr<const T>
(&
_storage
[0]);
122
}
fl::Variant::_storage
char _storage[max_size< Types... >::value]
Definition
variant.h:294
fl::Variant::is
bool is() const noexcept
Definition
variant.h:106
fl::bit_cast_ptr
To * bit_cast_ptr(void *storage) noexcept
Definition
bit_cast.h:54
fl
Variant
Generated on Fri Aug 22 2025 20:59:37 for FastLED by
1.13.2