Name
swap function template specialization — Swaps the contents of two deques
Synopsis
template<typename T, typename Alloc>
void swap(deque<T, Alloc>& x, deque<T, Alloc>& y)
The swap
function template
specialization is equivalent to calling x.swap(y)
.