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

◆ find()

template<typename T>
fl::size fl::Slice< T >::find ( const T & value) const
inline

Definition at line 157 of file slice.h.

157 {
158 for (fl::size i = 0; i < mSize; ++i) {
159 if (mData[i] == value) {
160 return i;
161 }
162 }
163 return fl::size(-1);
164 }
T * mData
Definition slice.h:194
fl::size mSize
Definition slice.h:195

References mData, and mSize.