bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::select_on_container_copy_construction

Obtain an allocator to use when copying a container.

Synopsis

Declared in <bslma_allocatortraits.h>

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

NameDescription
__rhsAn allocator.