[scoped.adaptor.operators]

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

## 20.6 Class template scoped_allocator_adaptor [[allocator.adaptor]](allocator.adaptor#scoped.adaptor.operators)

### 20.6.5 Operators [scoped.adaptor.operators]

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

`template<class OuterA1, class OuterA2, class... InnerAllocs>
  bool operator==(const scoped_allocator_adaptor<OuterA1, InnerAllocs...>& a,
                  const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& b) noexcept;
`

[1](#1)

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

*Returns*: If sizeof...(InnerAllocs) is zero,a.outer_allocator() == b.outer_allocator() otherwisea.outer_allocator() == b.outer_allocator() && a.inner_allocator() == b.inner_allocator()
