The 'vector' class in the C++ programming language is a sequence container. It is a dynamic array that can be resized as needed.
The 'swap' function in the 'vector' class swaps the contents of two vectors. It takes another vector as a parameter and swaps the contents with the current vector.
Example:
```c++
#include
#include
using namespace std;
int main()
{
// Creating two vectors and initializing them with values
vector v1 = {1, 2, 3};
vector v2 = {4, 5, 6};
// Before Swap
cout<<"v1: ";
for(int i=0; iC++ (Cpp) Vector::swap - 30 examples found. These are the top rated real world C++ (Cpp) examples of Vector::swap from package self extracted from open source projects. You can rate examples to help us improve the quality of examples.