[queue.special] # 23 Containers library [[containers]](./#containers) ## 23.6 Container adaptors [[container.adaptors]](container.adaptors#queue.special) ### 23.6.3 Class template queue [[queue]](queue#special) #### 23.6.3.6 Specialized algorithms [queue.special] [🔗](#lib:swap,queue) `template constexpr void swap(queue& x, queue& y) noexcept(noexcept(x.swap(y))); ` [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L15980) *Constraints*: is_swappable_v is true[.](#1.sentence-1) [2](#2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L15984) *Effects*: As if by x.swap(y)[.](#2.sentence-1)