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> の公開静的メンバ関数)