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
{
188
Compare
comp
;
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
}
fl::priority_queue_stable
Stable priority queue that maintains FIFO ordering for equal-priority elements.
Definition
priority_queue.h:180
fl::priority_queue_stable::StableElement::mValue
T mValue
Definition
priority_queue.h:183
fl::priority_queue_stable::StableElement::mSequence
u64 mSequence
Definition
priority_queue.h:184
References
mSequence
, and
mValue
.
fl
priority_queue_stable
StableElement
Generated on Tue Jun 16 2026 00:07:06 for FastLED by
1.13.2