Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 584 Bytes

forward-list-functions.md

File metadata and controls

28 lines (20 loc) · 584 Bytes
description title ms.date f1_keywords ms.assetid
Learn more about: <forward_list> functions
<forward_list> functions
11/04/2016
forward_list/std::swap
0d6bc656-7049-4651-a4bd-c9a805e47756

<forward_list> functions

swap

Exchanges the elements of two forward lists.

void swap(forward_list <Type, Allocator>& left, forward_list <Type, Allocator>& right);

Parameters

left
An object of type forward_list.

right
An object of type forward_list.

Remarks

This template function executes left.swap(right).