26 Containers library [containers]

26.6 Container adaptors [container.adaptors]

26.6.4 Class template queue [queue]

26.6.4.5 queue specialized algorithms [queue.special]

template <class T, class Container> void swap(queue<T, Container>& x, queue<T, Container>& y) noexcept(noexcept(x.swap(y)));

Remarks: This function shall not participate in overload resolution unless is_­swappable_­v<Container> is true.

Effects: As if by x.swap(y).