#ifndef PAIR #define PAIR template class Pair { T left; U right; public: Pair(); Pair(const T& left, const U& right); const T& l(); const U& r(); }; template Pair::Pair() : left(), right() {} template Pair::Pair(const T& left, const U& right) : left(left), right(right) {} template const T& Pair::l() { return left; } template const U& Pair::r() { return right; } #endif