C++ Vector swap syntax code example Example: C++ Vector swap syntax vector<T>().swap(x); // clear x reallocating