24 Containers library [containers]

24.6 Container adaptors [container.adaptors]

24.6.6 Class template queue [queue]

24.6.6.6 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).