# std::experimental::pmr::polymorphic_allocator<T>::select_on_container_copy_construction

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

Returns a default-constructed polymorphic_allocator object.

## Official Specification Summary (cppreference)

```cpp
polymorphic_allocator select_on_container_copy_construction() const; // (library fundamentals TS)
```

Returns a default-constructed `polymorphic_allocator` object.

### Parameters

(none)

### Return value

A default-constructed `polymorphic_allocator` object.

### Notes

`polymorphic_allocator`s do not propagate on container copy construction.

### See also

- [`select_on_container_copy_construction`](https://en.cppreference.com/w/cpp/memory/allocator_traits/select_on_container_copy_construction) [static]: obtains the allocator to use after copying a standard container (public static member function of `std::allocator_traits<Alloc>`)

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