Construct the second member using the allocator_arg idiom.

Synopsis

Declared in <bslstl_pair.h>

Pair_Second(
    BloombergLP::bslma::Allocator* basicAllocator,
    Pair_BslmaIdiomAllocatorArgT idiom);

Description

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

Parameters

Name

Description

basicAllocator

allocator used to supply memory

idiom

tag selecting the allocator_arg construction idiom

Created with MrDocs