Construct the second member with the allocator as the last argument.

Synopsis

Declared in <bslstl_pair.h>

template<class PARAM>
Pair_Second(
    PARAM&& value,
    BloombergLP::bslma::Allocator* basicAllocator,
    Pair_BslmaIdiomAtEnd idiom);

Description

Construct the second member of a pair from the specified value, using the specified basicAllocator to supply memory. This constructor is selected when (template parameter) TYPE takes a bslma‐style allocator as the last constructor argument.

Parameters

Name

Description

value

value forwarded to the constructor of TYPE

basicAllocator

allocator used to supply memory

idiom

tag selecting the trailing‐allocator construction idiom

Created with MrDocs