OpenTTD Source: TimerManager< TTimerType >::base_timer_sorter Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions
TimerManager< TTimerType >::base_timer_sorter Struct Reference

Sorter for timers. More...

## Public Member Functions
bool | operator() (BaseTimer< TTimerType > *a, BaseTimer< TTimerType > *b) const

## Detailed Description

template<typename TTimerType>
struct TimerManager< TTimerType >::base_timer_sorter

Sorter for timers.

It will sort based on the period, smaller first. If the period is the same, it will sort based on the pointer value.

Definition at line 104 of file timer_manager.h.

## Member Function Documentation

## ◆ operator()()

template<typename TTimerType >

bool TimerManager< TTimerType >::base_timer_sorter::operator() | ( | BaseTimer< TTimerType > * | a,
|  | BaseTimer< TTimerType > * | b
| ) |  | const
| inline

Definition at line 105 of file timer_manager.h.

The documentation for this struct was generated from the following file:

- src/timer/timer_manager.h