CPP 6
CPP 6
// new one
void swap(int &x, int &y) {
int store = x;
x = y;
y = store;
}
1
The Safe Version Why not always use references?