What are the differences between swap in C++ and Python?

前端 未结 4 1531
北荒
北荒 2021-01-21 20:50

About swap, in C++, we can swap two by std::swap(x, y);. x and y are passed into swap as reference.

But

4条回答
提交回复
热议问题