gecko-dev/tools/clang-tidy/test/modernize-shrink-to-fit.cpp

11 строки
160 B
C++

#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);
}