// This example illustrates the use and difference of member initialization lists, and an introduction to templates
//  This will compile and run as a console application for msft visual studio

#include "stdafx.h"
#include <iostream>




using namespace std;
class pair_int_char {
public:
	int first;
	char second;
	pair_int_char(int x, char y) : first(x), second(y) {}
};
class pair_bool_double {
public:
	bool first;
	double second;

	pair_bool_double(bool x, double y) :first(x), second(y) {}

};

class pair_test_one {
public:
	int first;
	char second;
	pair_test_one(int x, char y) {
		first = x;
		second = y;
	}
};

template 
class xpair {
public:
	T1 first;
	T2 second;

	xpair(T1 x, T2 y) : first(x), second(y) {}

};
xpair<int, char >pair3(13, 'a');
xpair<bool, double>pair4(true, 0.1);
int main()
{
	
	
	cout << pair3.first << endl;
	cout << pair4.second << endl;

}