FastLED 3.10.6
Loading...
Searching...
No Matches

◆ get() [5/12]

template<fl::size I, typename T1, typename T2>
pair_element< I, T1, T2 >::type && fl::get ( pair< T1, T2 > && p)

Definition at line 135 of file pair.h.

135 {
136 FL_STATIC_ASSERT(I < 2, "Index out of bounds for pair");
137 if (I == 0) {
138 return fl::move(p.first);
139 } else {
140 return fl::move(p.second);
141 }
142}
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:28
#define FL_STATIC_ASSERT(...)
T1 first
Definition pair.h:16
T2 second
Definition pair.h:17

References FL_NO_EXCEPT, FL_STATIC_ASSERT, and move().

+ Here is the call graph for this function: