33 Thread support library [thread]

33.6 Futures [futures]

33.6.10 Class template packaged_­task [futures.task]

33.6.10.2 packaged_­task 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).
template <class R, class Alloc> struct uses_allocator<packaged_task<R>, Alloc> : true_type { };
Requires: Alloc shall be an Allocator.