23 Containers library [containers]

23.3 Sequence containers [sequences]

23.3.9 Class template forward_list [forwardlist]

23.3.9.7 forward_list specialized algorithms [forwardlist.spec]

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

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