FastLED 3.10.8
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 129 of file pair.h.

129 {
130 FL_STATIC_ASSERT(I < 2, "Index out of bounds for pair");
131 if (I == 0) {
132 return p.first;
133 } else {
134 return p.second;
135 }
136}
#define FL_STATIC_ASSERT(...)
T1 first
Definition pair.h:17
T2 second
Definition pair.h:18

References FL_NO_EXCEPT, and FL_STATIC_ASSERT.