12345
template <typename T> void Switch(T *&A, T *&B) { //... }
1234567
template <typename T> void swap(T*& a, T*&b) { T* temp=a; a=b; b=temp; }