[#bsl-allocator_traits-0ae-select_on_container_copy_construction] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator_traits<std::allocator<ALLOCATOR_TYPE>>]::select_on_container_copy_construction :relfileprefix: ../../ :mrdocs: Obtain an allocator to use when copying a container. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static _Alloc select_on_container_copy_construction(_Alloc const& __rhs); ---- == Description Returns `__rhs.select_on_container_copy_construction()` if that expression is well‐formed, otherwise returns ___rhs_ == Return Value `__rhs.select_on_container_copy_construction()` or ___rhs_ == Parameters [cols="1,4"] |=== | Name| Description | *__rhs* | An allocator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#