22 Containers library [containers]

22.6 Container adaptors [container.adaptors]

22.6.4 Class template queue [queue]

22.6.4.5 Specialized algorithms [queue.special]

template<class T, class Container> void swap(queue<T, Container>& x, queue<T, Container>& y) noexcept(noexcept(x.swap(y)));
Constraints: is_­swappable_­v<Container> is true.
Effects: As if by x.swap(y).