[futures.task.nonmembers]

# 32 Concurrency support library [[thread]](./#thread)

## 32.10 Futures [[futures]](futures#task.nonmembers)

### 32.10.10 Class template packaged_task [[futures.task]](futures.task#nonmembers)

#### 32.10.10.3 Globals [futures.task.nonmembers]

[ð](#lib:swap,packaged_task)

`template<class R, class... ArgTypes>
  void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L12903)

*Effects*: As if by x.swap(y)[.](#1.sentence-1)
