[#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:

Obtain an allocator to use when copying a container&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
&lowbar;Alloc
select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction(&lowbar;Alloc const& &lowbar;&lowbar;rhs);
----

== Description

Returns `&lowbar;&lowbar;rhs&period;select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction()` if that expression is well&hyphen;formed, otherwise returns _&lowbar;&lowbar;rhs_

== Return Value

`&lowbar;&lowbar;rhs&period;select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction()` or _&lowbar;&lowbar;rhs_

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;rhs*
| An allocator&period;
|===


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