OpenTTD Source 20241224-master-gee860a5c8e
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.
 

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: