次の方法で共有


scoped_allocator_adaptor::select_on_container_copy_construction メソッド

対応するアロケーターの select_on_container_copy_construction を呼び出すことによって初期化された、保存されたアロケーターのオブジェクトを使用して scoped_allocator_adaptor に新しいオブジェクトを作成します。

scoped_allocator_adaptor select_on_container_copy_construction();

戻り値

このメソッドは、scoped_allocator_adaptor(Outer_traits::select_on_container_copy_construction(*this), inner_allocator().select_on_container_copy_construction())を返します。結果は対応するアロケーター alの al.select_on_container_copy_construction() を呼び出すことによって初期化された、保存されたアロケーターのオブジェクトを使用して scoped_allocator_adaptor の新しいオブジェクトです。

必要条件

ヘッダー: <scoped_allocator>

名前空間: std

参照

関連項目

scoped_allocator_adaptor クラス

allocator_traits::select_on_container_copy_construction メソッド