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

139 {
140 FL_STATIC_ASSERT(I < 2, "Index out of bounds for pair");
141 if (I == 0) {
142 return fl::move(p.first);
143 } else {
144 return fl::move(p.second);
145 }
146}
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition s16x16x4.h:30
#define FL_STATIC_ASSERT(...)
T1 first
Definition pair.h:17
T2 second
Definition pair.h:18

References FL_NO_EXCEPT, FL_STATIC_ASSERT, and fl::fl::adl_barrier::move().

+ Here is the call graph for this function: