Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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