Found out about "std::swap(var, var)", thank you @BevapDin, you're the best!