#include using namespace std; template class Pair { public: Pair(const F& a, const S& b); F get_first() const; S get_second() const; private: F first; S second; }; template Pair::Pair(const F& a, const S& b) { first = a; second = b; } template F Pair::get_first() const { return first; } template S Pair::get_second() const { return second; }