[mem.poly.allocator.eq]

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

## 20.5 Memory resources [[mem.res]](mem.res#mem.poly.allocator.eq)

### 20.5.3 Class template polymorphic_allocator [[mem.poly.allocator.class]](mem.poly.allocator.class#mem.poly.allocator.eq)

#### 20.5.3.4 Equality [mem.poly.allocator.eq]

[ð](#lib:operator==,polymorphic_allocator)

`template<class T1, class T2>
  bool operator==(const polymorphic_allocator<T1>& a,
                  const polymorphic_allocator<T2>& b) noexcept;
`

[1](#1)

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

*Returns*: *a.resource() == *b.resource()[.](#1.sentence-1)
