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