Partager via


scoped_allocator_adaptor::select_on_container_copy_construction Method

Creates a new scoped_allocator_adaptor object with each stored allocator object initialized by calling select_on_container_copy_construction for each corresponding allocator.

scoped_allocator_adaptor select_on_container_copy_construction();

Return Value

This method effectively returns scoped_allocator_adaptor(Outer_traits::select_on_container_copy_construction(*this), inner_allocator().select_on_container_copy_construction()). The result is a new scoped_allocator_adaptor object with each stored allocator object initialized by calling al.select_on_container_copy_construction() for the corresponding allocator al.

Requirements

Header: <scoped_allocator>

Namespace: std

See Also

Reference

scoped_allocator_adaptor Class

allocator_traits::select_on_container_copy_construction Method