swap
交换两个 deque 的元素。
void swap(
deque<Type, Allocator>& left,
deque<Type, Allocator>& right);
参数
left
一个 deque 类型的对象。
right
一个 deque 类型的对象。
示例
请参阅 deque:: swap 的示例。
<deque> 函数交换两个 deque 的元素。
void swap(
deque<Type, Allocator>& left,
deque<Type, Allocator>& right);
left
一个 deque 类型的对象。
right
一个 deque 类型的对象。
请参阅 deque:: swap 的示例。