#ifndef PAIR #define PAIR template struct Pair { T left; U right; Pair(); Pair(const T& left, const U& right); }; template Pair::Pair() : left(), right() {} template Pair::Pair(const T& left, const U& right) : left(left), right(right) {} #endif