Gator Library
An implementation of the Red-Black Tree and Priority queue data structure in C++.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Compare Class Reference

The Compare class is used as a comparison function for the reservation class. More...

#include <reservation.hpp>

Collaboration diagram for Compare:
Collaboration graph

Public Member Functions

bool operator() (reservation a, reservation b)
 Overloaded function call operator to compare two reservations.
 

Detailed Description

The Compare class is used as a comparison function for the reservation class.

Member Function Documentation

◆ operator()()

bool Compare::operator() ( reservation  a,
reservation  b 
)
inline

Overloaded function call operator to compare two reservations.

Parameters
aThe first reservation to compare.
bThe second reservation to compare.
Returns
true if a has higher priority than b, false otherwise.

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