/* Lecture Code 4.4
 *
 * Examples of the STL pair type.
 */
#include <iostream>
#include <utility> // For pair
#include <string>
using namespace std;

int main() {
	/* Create a pair of an integer and a string, then set its
	 * values directly.
	 */
	pair<int, string> one;
	one.first = 137;
	two.second = "C++!";
	
	/* Create a pair of an integer and string by initializing
	 * the values in the constructor.
	 */
	pair<int, string> two(137, "C++!");
	
	/* Create a pair of an integer and string by initializing
	 * it via make_pair.
	 */
	pair<int, string> three = make_pair(137, "C++!");
}