Function operator<<(std::ostream&, const Vehicle&)

Function Documentation

std::ostream &operator<<(std::ostream &os, const Vehicle &v)

Overloads the << operator to print the data in the Vehicle struct.

Return
ostream
Parameters
  • os: ostream to which the printing is to be done
  • v: vehicle who’s status is to be printed