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)

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}
#define FL_STATIC_ASSERT(...)
T1 first
Definition pair.h:16
T2 second
Definition pair.h:17

References FL_NOEXCEPT, and FL_STATIC_ASSERT.