#include using namespace std; template void swapEverything(T &a,T &b) { T c = a; a = b; b = c; } int main() { int a=5; int b=10; cout << a << " " << b << endl; swapEverything(a,b); cout << a << " " << b << endl; float c=1.2; float d=7.5; cout << c << " " << d << endl; swapEverything(c,d); cout << c << " " << d << endl; return 0; }