assume that i have this code:
template <class T> void Swap (T& a, T& b)
{
a ^= b;
b ^= a;
a ^= b;
}
what is the difference between:
overloading
void Swap (int& x, int& s) { //some behavior }
Specialization
template<> void Swap <int> (int& x, int& s) { //some behavior }
and who is better?