To define a template, denote the arbitrary type
with a type parameter as show in syntax 17.3 (next slide),
and add the line template<typename T> before the
class definition.
template<typename T>
class Pair
{
public:
Pair(T a, T b);
T get_first() const;
T get_second() const;
private:
T first;
T second;
};