OpenTTD Source: DistanceAnnotation::Comparator Struct Reference

OpenTTD Source 13.1

Public Member Functions
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

  x | First distance annotation.
  y | Second distance annotation.

Returns
  If x is better than y.

Definition at line 619 of file mcf.cpp.

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

- src/linkgraph/mcf.cpp