#include "buysell.h" bool buysell::operator==(const buysell &rhs) const { return ((foe[0] == rhs.foe[0]) && (foe[1] == rhs.foe[1]) && (foe[2] == rhs.foe[2])); } std::ostream &operator<<(std::ostream &os, const buysell &bs) { os << bs.foe[0] << bs.foe[1] << bs.foe[2]; return os; } bool buysell_text::operator==(const buysell_text &rhs) const { return ((txt[0] == rhs.txt[0]) && (txt[1] == rhs.txt[1]) && (txt[2] == rhs.txt[2])); } std::ostream &operator<<(std::ostream &os, const buysell_text &bst) { os << '"' << bst.txt[0] << bst.txt[1] << bst.txt[2] << '"'; return os; }