[util.smartptr.weak.spec]

# 20 Memory management library [[mem]](./#mem)

## 20.3 Smart pointers [[smartptr]](smartptr#util.smartptr.weak.spec)

### 20.3.2 Shared-ownership pointers [[util.sharedptr]](util.sharedptr#util.smartptr.weak.spec)

#### 20.3.2.3 Class template weak_ptr [[util.smartptr.weak]](util.smartptr.weak#spec)

#### 20.3.2.3.7 Specialized algorithms [util.smartptr.weak.spec]

[ð](#lib:swap,weak_ptr)

`template<class T>
  constexpr void swap(weak_ptr<T>& a, weak_ptr<T>& b) noexcept;
`

[1](#1)

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

*Effects*: Equivalent to a.swap(b)[.](#1.sentence-1)
