vector <weight> decoy;
void clear_decoy() {
decoy.clear();
vector<weight> (decoy).swap(decoy);
}
In the above method clear_decoy(), what does vector<weight> (decoy).swap(decoy); mean please?
Does the method clear decoy or not? Thanks!