[#bsl-Pair_First-00-2constructor-0c0]
= xref:bsl.adoc[bsl]::xref:bsl/Pair_First-00.adoc[Pair&lowbar;First]::Pair&lowbar;First
:relfileprefix: ../../
:mrdocs:

Construct the `first` 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;First(
    PARAM&& value,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator,
    xref:bsl/Pair_BslmaIdiomNone.adoc[Pair&lowbar;BslmaIdiomNone] idiom);
----

== Description

Construct the &apos;first&apos; member of a &apos;pair&apos; from the specified &apos;value&apos;, using the specified &apos;basicAllocator&apos; to supply memory&period; This function (perfectly) forwards &apos;value&apos; to the constructor of (template parameter) &apos;TYPE&apos; when &apos;TYPE&apos; does not use &apos;bslma&apos;&hyphen;style allocators&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]#
