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

◆ operator<()

template<typename T, typename Compare = fl::less<T>>
bool fl::priority_queue_stable< T, Compare >::StableElement::operator< ( const StableElement & other) const
inline

Definition at line 187 of file priority_queue.h.

187 {
189 // Use the Compare function to determine ordering
190 if (comp(mValue, other.mValue)) return true;
191 if (comp(other.mValue, mValue)) return false;
192 // Values are equal according to comparator - use sequence for FIFO ordering
193 // INVERTED: smaller sequence should be "greater" (pop first)
194 return mSequence > other.mSequence;
195 }
Stable priority queue that maintains FIFO ordering for equal-priority elements.

References mSequence, and mValue.