FastLED 3.9.15
Loading...
Searching...
No Matches

◆ get() [7/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 113 of file pair.h.

113 {
114 static_assert(I < 2, "Index out of bounds for pair");
115 if (I == 0) {
116 return p.first;
117 } else {
118 return p.second;
119 }
120}
T1 first
Definition pair.h:14
T2 second
Definition pair.h:15

Referenced by fl::Corkscrew::clear(), fl::Corkscrew::data(), fl::result< T >::error(), get(), get(), get(), fl::anonymous_namespace{task.cpp}::make_trace_label(), fl::Corkscrew::pixelCount(), fl::Corkscrew::rawData(), fl::result< T >::value(), fl::result< T >::value(), and fl::Ptr< T >::weakRefNoCreate().

+ Here is the caller graph for this function: