#ifndef OPERATORS_H_ #define OPERATORS_H_ #include template std::pair operator+(const std::pair& one, const std::pair& two) { std::pair r(one.first + two.first, one.second + two.second); return r; } template std::pair operator-(const std::pair& one, const std::pair& two) { std::pair r(one.first - two.first, one.second - two.second); return r; } template std::ostream& operator<<(std::ostream& s, const std::pair& aT) { s << "(" << aT.first << ", " << aT.second << ")"; return s; } #endif /*OPERATORS_H_*/