Namespaces
Variants

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: 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)
ヘッダーで定義 <scoped_allocator>
scoped_allocator_adaptor select_on_container_copy_construction ( ) const ;
(C++11以降)

std::scoped_allocator_adaptor の新しいインスタンスを作成します。ここで、外側のアロケータ基底クラスと各内側のアロケータサブオブジェクトは、 std:: allocator_traits < A > :: select_on_container_copy_construction ( ) を呼び出すことで取得されます。

パラメータ

(なし)

戻り値

新しい std::scoped_allocator_adaptor オブジェクト。正しくコピーされたアロケータから構築されます。

関連項目

標準コンテナのコピー後に使用するアロケータを取得する
( std::allocator_traits<Alloc> のpublic staticメンバー関数)