[#bsl-Pair_Second-05e-2constructor-06c]
= xref:bsl.adoc[bsl]::xref:bsl/Pair_Second-05e.adoc[Pair&lowbar;Second]::Pair&lowbar;Second
:relfileprefix: ../../
:mrdocs:

Construct the `second` member from `value`, ignoring the allocator&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;pair&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class PARAM&gt;
Pair&lowbar;Second(
    PARAM&& value,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator,
    xref:bsl/Pair_BslmaIdiomNone.adoc[Pair&lowbar;BslmaIdiomNone] idiom);
----

== Description

Construct the `second` member of a `pair` from the specified `value`, using the specified `basicAllocator` to supply memory&period; This function (perfectly) forwards `value` to the constructor of (template parameter) `TYPE`&period; Note that exactly one of these three constructors is enabled at compile&hyphen;time for (template parameter) type `TYPE` based on the following respective criteria&colon; 1) `TYPE` does not support `bslma`&hyphen;style allocators, 2) `TYPE` takes a `bslma`&hyphen;style allocator as the last constructor argument, and 3) `TYPE` takes a `bslma`&hyphen;style allocator as the second constructor argument preceded by `bsl&colon;&colon;allocator&lowbar;arg`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value forwarded to the constructor of `TYPE`
| *basicAllocator*
| allocator used to supply memory
| *idiom*
| tag selecting the no&hyphen;allocator construction idiom
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
