|
ReactESP 3.3.1
Asynchronous programming for the ESP microcontrollers
|
Strict total ordering for TimedEvent pointers. More...
#include <events.h>
Public Member Functions | |
| bool | operator() (const TimedEvent *a, const TimedEvent *b) const |
Strict total ordering for TimedEvent pointers.
Orders by trigger time ascending. Pointer address is used as a tiebreaker so that distinct events with the same trigger time have a well-defined, unique position in an ordered container (std::set).
Note: last_trigger_time (part of the sort key) must not be mutated while the event is inside the container — remove first, modify, then re-insert.
|
inline |