| description | Learn more about: <list> functions | |
|---|---|---|
| title | <list> functions | |
| ms.custom | ||
| ms.date | 11/04/2016 | |
| ms.topic | reference | |
| f1_keywords |
|
Exchanges the elements of two lists.
template <class T, class Allocator>
void swap(list<T, Allocator>& left, list<T, Allocator>& right)left
An object of type list.
right
An object of type list.
This template function executes left.swap(right).