Namespaces
Variants
Actions

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

From cppreference.com
 
 
Memory management library
(exposition only*)
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage(until C++20)
(until C++20*)
(until C++20*)
Garbage collector support(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
 
 
polymorphic_allocator select_on_container_copy_construction()const;
(since C++17)

Returns a default-constructed polymorphic_allocator object.

Contents

[edit]Parameters

(none)

[edit]Return value

A default-constructed polymorphic_allocator object.

[edit] Notes

polymorphic_allocators do not propagate on container copy construction.

[edit]See also

obtains the allocator to use after copying a standard container
(public static member function of std::allocator_traits<Alloc>)[edit]
close