1樓:西海. auto temp = std::move(s1);. s1 = std::move(s2);. s2 = std::move(temp);. 這不是最無腦的辦法嗎. 2樓:. swap,沒得說。
確定! 回上一頁