/*
 * Copyright (c) 1999 Johnny C. Lam.
 * All rights reserved.
 *
 * Permission to use, copy, modify, distribute and sell this software
 * and its documentation for any purpose is hereby granted without fee,
 * provided that the above copyright notice appear in all copies and
 * that both that copyright notice and this permission notice appear
 * in supporting documentation.  The author makes no representations
 * about the suitability of this software for any purpose.  It is
 * provided "as is" without express or implied warranty.
 */

#include <iostream>
#include <reference_pair>
#include <utility>

using namespace std;

int
main()
{
	int i;
	int j;
	bind_pair(i, j) = make_pair(2, 3);
	long I = 5;
	long J = 6;
	cout << "(" << i << ", " << j << ")" << endl;
	bind_pair(i, j) = make_pair(I, J);
	cout << "(" << i << ", " << j << ")" << endl;
	return 0;
}
