[#bsl-allocator_traits-0ae-select_on_container_copy_construction]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator&lowbar;traits&lt;std::allocator&lt;ALLOCATOR&lowbar;TYPE&gt;&gt;]::select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction
:relfileprefix: ../../
:mrdocs:

Return the allocator to use when copy&hyphen;constructing a container&period;

== Synopsis

Declared in `&lt;bslma&lowbar;allocatortraits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using Base::select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction;
----

== Description

Return a copy of the allocator that should be used to copy&hyphen;construct one container from another whose allocator is `rhs`, via the underlying `std&colon;&colon;allocator&lowbar;traits` implementation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| allocator of the container being copy&hyphen;constructed from
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
