交換兩個 deques 的項目。
void swap(
deque<Type, Allocator>& _Left,
deque<Type, Allocator>& _Right,
);
參數
_Left
型別 deque 的物件。_Right
型別 deque 的物件。
範例
描述
deque::swap。請參閱範例。
需求
標題: <deque>
命名空間: std
交換兩個 deques 的項目。
void swap(
deque<Type, Allocator>& _Left,
deque<Type, Allocator>& _Right,
);
_Left
型別 deque 的物件。
_Right
型別 deque 的物件。
deque::swap。請參閱範例。
標題: <deque>
命名空間: std