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

◆ operator<()

template<typename T, fl::size N = 0>
bool fl::circular_buffer< T, N >::operator< ( const circular_buffer< T, N > & other) const
inline

Lexicographic comparison.

Definition at line 296 of file circular_buffer.h.

296 {
297 fl::size min_size = (size() < other.size()) ? size() : other.size();
298 for (fl::size i = 0; i < min_size; ++i) {
299 if (mCore[i] < other.mCore[i]) return true;
300 if (other.mCore[i] < mCore[i]) return false;
301 }
302 return size() < other.size();
303 }
circular_buffer_core< T > mCore
fl::size size() const

References circular_buffer(), mCore, and size().

+ Here is the call graph for this function: