Exchanges the elements of two forward lists.
void swap(
    forward_list <Type, Allocator>& _Left,
    forward_list <Type, Allocator>& _Right
);
Parameters
| Parameter | Description | 
|---|---|
| _Left | An object of type forward_list. | 
| _Right | An object of type forward_list. | 
Remarks
This template function executes _Left.swap(_Right).
Requirements
Header: <forward_list>
Namespace: std