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

References FL_NOEXCEPT, FL_STATIC_ASSERT, and fl::fl::move().

+ Here is the call graph for this function: