FastLED
3.9.15
Loading...
Searching...
No Matches
◆
get()
[2/2]
template<typename... Types>
template<typename T>
const T &
fl::Variant
< Types >::get
(
)
const
inline
Get a const reference to the stored value of type T.
Template Parameters
T
The type to retrieve
Returns
Const reference to the stored value
Note
Asserts if the variant doesn't contain type T. Use
is<T>()
to check first.
Warning
Will crash if called with wrong type - this is intentional for fast failure
Definition at line
140
of file
variant.h
.
140
{
141
// Dereference ptr() directly - will crash with null pointer access if wrong type
142
// This provides fast failure semantics similar to std::variant
143
return
*
ptr<T>
();
144
}
fl::Variant::ptr
T * ptr()
Definition
variant.h:110
fl
Variant
Generated on Fri Aug 22 2025 20:59:37 for FastLED by
1.13.2