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)
noexcept

Definition at line 133 of file pair.h.

133 {
134 static_assert(I < 2, "Index out of bounds for pair");
135 if (I == 0) {
136 return fl::move(p.first);
137 } else {
138 return fl::move(p.second);
139 }
140}
constexpr remove_reference< T >::type && move(T &&t) noexcept
Definition move.h:27
T1 first
Definition pair.h:14
T2 second
Definition pair.h:15

References move().

+ Here is the call graph for this function: