FastLED 3.9.15
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)
noexcept

Definition at line 123 of file pair.h.

123 {
124 static_assert(I < 2, "Index out of bounds for pair");
125 if (I == 0) {
126 return p.first;
127 } else {
128 return p.second;
129 }
130}
T1 first
Definition pair.h:14
T2 second
Definition pair.h:15