Racing Web
raceutil.cc File Reference
#include "src/raceutil.h"

Functions

bool DoAnyCarsMatch (std::vector< const Car * > const &a, std::vector< const Car * > const &b)
 

Function Documentation

◆ DoAnyCarsMatch()

bool DoAnyCarsMatch ( std::vector< const Car * > const &  a,
std::vector< const Car * > const &  b 
)

checks if any cars in the two vectors provided are the same object

Parameters
aleft operand to compare
bright operand to compare
Returns
true if any cars in either vector are the same object