交换元素的两正向列表。
void swap(
forward_list <Type, Allocator>& _Left,
forward_list <Type, Allocator>& _Right
);
参数
Parameter |
说明 |
---|---|
_Left |
forward_list 类型的对象。 |
_Right |
forward_list 类型的对象。 |
备注
此模板函数执行 _Left.swap(_Right)。
要求
标头: <forward_list>
命名空间: std