32 Concurrency support library [thread]

32.10 Futures [futures]

32.10.10 Class template packaged_task [futures.task]

32.10.10.3 Globals [futures.task.nonmembers]

template<class R, class... ArgTypes> void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y) noexcept;
Effects: As if by x.swap(y).