#include using namespace std; //TO DO //Write a class using template that takes 2 //template parameters. The name of the class is // TwoElementTuple . It is able to store and retrieve // 2 items that can be of different types. //The constructor should take 2 parameters and store them //in the data members of the class. The data members should //be private. There should be 2 public methods. getFirstItem and //getSecondItem and of course the constructor should be public template class TwoElementTuple { private: S item1 ; T item2 ; public: TwoElementTuple( S item1P , T item2P ) { item1 = item1P ; item2 = item2P ; } S getFirstItem() { return item1 ; } T getSecondItem() { return item2 ; } }; //DO NOT MODIFY THE MAIN FUNCTION int main () { TwoElementTuple< int, string> tuple1( 1, "Testing" ) ; cout << "tuple1.getFirstItem(): " << tuple1.getFirstItem() << endl ; cout << "tuple1.getSecondItem(): " << tuple1.getSecondItem() << endl ; return 0; }