Partilhar via


swap (<deque>)

Exchanges the elements of two deques.

void swap(
   deque<Type, Allocator>& _Left,
   deque<Type, Allocator>& _Right,
);

Parameters

  • _Left
    An object of type deque.

  • _Right
    An object of type deque.

Example

Description

See the example for deque::swap.

Requirements

Header: <deque>

Namespace: std

See Also

Reference

Standard Template Library

Other Resources

<deque> Members