What is the difference between

```
someVector.clear();
std::vector<int> ().swap(someVector);

```

and

```
someVector.clear();
std::vector<int> (someVector).swap(someVector);

```

Or do they accomplish the same thing?

Edit:
The goal is to free the memory associated with someVector.