# std::experimental::pmr::polymorphic_allocator<T>::operator=

> C++ Atlas: `cppatlas.com/w/cpp/experimental/polymorphic_allocator/operator=` | Source: https://en.cppreference.com/w/cpp/experimental/polymorphic_allocator/operator= | Domain: Technical specifications

Copy assigns this polymorphic_allocator. Sets the memory resource pointer of *this to that of rhs.

## Official Specification Summary (cppreference)

```cpp
polymorphic_allocator& operator=( const polymorphic_allocator& rhs ) = default; // (library fundamentals TS)
```

Copy assigns this `polymorphic_allocator`. Sets the memory resource pointer of `*this` to that of `rhs`.

### Parameters

- `rhs` - another `polymorphic_allocator` to copy from

### Return value

`*this`

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/polymorphic_allocator/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.