OpenTTD Source  20241121-master-g67a0fccfad
DistanceAnnotation::Comparator Struct Reference

Comparator for std containers. More...

Public Member Functions

bool operator() (const DistanceAnnotation *x, const DistanceAnnotation *y) const
 Compare two distance annotations. More...
 

Detailed Description

Comparator for std containers.

Definition at line 43 of file mcf.cpp.

Member Function Documentation

◆ operator()()

bool DistanceAnnotation::Comparator::operator() ( const DistanceAnnotation x,
const DistanceAnnotation y 
) const

Compare two distance annotations.

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

Definition at line 618 of file mcf.cpp.


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