//DISPLAY 17.1 A Function Template //Program to demonstrate a function template. #include using namespace std; //Interchanges the values of variable1 and variable2. template void swap_values(T& variable1, T& variable2) { T temp; temp = variable1; variable1 = variable2; variable2 = temp; } int main( ) { int integer1 = 1, integer2 = 2; cout << "Original integer values are " << integer1 << " " << integer2 << endl; swap_values(integer1, integer2); cout << "Swapped integer values are " << integer1 << " " << integer2 << endl; char symbol1 = 'A', symbol2 = 'B'; cout << "Original character values are " << symbol1 << " " << symbol2 << endl; swap_values(symbol1, symbol2); cout << "Swapped character values are " << symbol1 << " " << symbol2 << endl; return 0; }