# std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::operator=

> C++ Atlas: `cppatlas.com/w/cpp/memory/scoped_allocator_adaptor/operator=` | Source: https://en.cppreference.com/w/cpp/memory/scoped_allocator_adaptor/operator= | Domain: Memory management

## Official Specification Summary (cppreference)

```cpp
// Defined in header <scoped_allocator>
scoped_allocator_adaptor& operator=( const scoped_allocator_adaptor& other ) = default; // (1)
scoped_allocator_adaptor& operator=( scoped_allocator_adaptor&& other ) = default; // (2)
```

1) Explicitly defaulted copy assignment operator that copy assigns the base class (`OuterAlloc`, the outer allocator) and all inner allocators.

2) Explicitly defaulted move assignment operator that move assigns the base class (`OuterAlloc`, the outer allocator) and all inner allocators.

### Parameters

- `other` - another `std::scoped_allocator_adaptor`

---
Attribution: content from https://en.cppreference.com/w/cpp/memory/scoped_allocator_adaptor/operator= (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.