FastLED
3.10.6
Loading...
Searching...
No Matches
◆
get()
[1/12]
template<fl::size I, typename T1, typename T2>
const
pair_element
< I, T1, T2 >::type & fl::get
(
const
pair
< T1, T2 > &
p
)
Definition at line
125
of file
pair.h
.
125
{
126
FL_STATIC_ASSERT
(I < 2,
"Index out of bounds for pair"
);
127
if
(I == 0) {
128
return
p.
first
;
129
}
else
{
130
return
p.
second
;
131
}
132
}
FL_STATIC_ASSERT
#define FL_STATIC_ASSERT(...)
Definition
static_assert.h:71
fl::pair::first
T1 first
Definition
pair.h:16
fl::pair::second
T2 second
Definition
pair.h:17
References
FL_NO_EXCEPT
, and
FL_STATIC_ASSERT
.
fl
Generated on Sun Oct 4 2026 23:09:07 for FastLED by
1.13.2