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

Name

Description

__rhs

An allocator.

Created with MrDocs