23 Containers library [containers]

23.6 Container adaptors [container.adaptors]

23.6.5 Class template stack [stack]

23.6.5.6 stack specialized algorithms [stack.special]

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

Effects: x.swap(y).