Source code
Revision control
Copy as Markdown
Other Tools
#include "structures.h"
void f() {
std::vector<int> v;
std::vector<int>(v).swap(v);
std::vector<int> &vref = v;
std::vector<int>(vref).swap(vref);
}
#include "structures.h"
void f() {
std::vector<int> v;
std::vector<int>(v).swap(v);
std::vector<int> &vref = v;
std::vector<int>(vref).swap(vref);
}