OpenTTD Source 20260208-master-g43af8e94d0
CapacityAnnotation::Comparator Struct Reference

Comparator for std containers. More...

Public Member Functions

bool operator() (const CapacityAnnotation *x, const CapacityAnnotation *y) const
 Compare two capacity annotations.

Detailed Description

Comparator for std containers.

Definition at line 92 of file mcf.cpp.

Member Function Documentation

◆ operator()()

bool CapacityAnnotation::Comparator::operator() ( const CapacityAnnotation * x,
const CapacityAnnotation * y ) const

Compare two capacity annotations.

Parameters
xFirst capacity annotation.
ySecond capacity annotation.
Returns
If x is better than y.

Definition at line 613 of file mcf.cpp.

References CapacityAnnotation::CapacityAnnotation(), and Greater().


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