Namespaces
Variants

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

From cppreference.net
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* )
( 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 ;
(C++17 起)

返回一个默认构造的 polymorphic_allocator 对象。

目录

参数

(无)

返回值

一个默认构造的 polymorphic_allocator 对象。

注释

polymorphic_allocator 在容器拷贝构造时不会传播。

参见

获取复制标准容器后应使用的分配器
( std::allocator_traits<Alloc> 的公开静态成员函数)