[#BloombergLP-bsltf-StdStatefulAllocator-select_on_container_copy_construction]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::xref:BloombergLP/bsltf/StdStatefulAllocator.adoc[StdStatefulAllocator]::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;bsltf&lowbar;stdstatefulallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsltf/StdStatefulAllocator.adoc[StdStatefulAllocator&lt;TYPE, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;CONSTRUCTION, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;ASSIGNMENT, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;SWAP, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;MOVE&lowbar;ASSIGNMENT, IS&lowbar;ALWAYS&lowbar;EQUAL&gt;]
select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction() const;
----

== Description

Return a copy of this object if the `bool` template parameter `PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;CONSTRUCTION` is true, and a copy of a `StdStatefulAllocator` object wrapping the default allocator otherwise&period;

== Return Value

this allocator, or one wrapping the default allocator


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