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

◆ operator<()

template<typename T>
bool fl::vector< T >::operator< ( const vector< T > & other) const
inline

Definition at line 802 of file vector.h.

802 {
804 const T* a = static_cast<const T*>(mArray);
805 const T* b = static_cast<const T*>(other.mArray);
806 for (fl::size i = 0; i < min_size; ++i) {
807 if (a[i] < b[i]) return true;
808 if (a[i] > b[i]) return false;
809 }
810 return mSize < other.mSize;
811 }