#include <iostream>  // cout, endl
#include <string>    // string
#include <cstdlib>   // EXIT_SUCCESS

#include "Pair.h"

using std::cout;
using std::endl;
using std::string;

int main(int argc, char** argv) {
  Pair<string> ps;  // this usage instantiates a class Pair<std::string>
  string x("foo"), y("bar");

  ps.set_first(x);     // first_ = "foo", second_ = ""
  ps.set_second(y);    // first_ = "foo", second_ = "bar"
  ps.Swap();           // first_ = "bar", second_ = "foo"
  cout << ps << endl;  // nonmember overloaded operator<< invoked

  return EXIT_SUCCESS;
}