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

Construct the `first` member of a `pair`, using the specified `basicAllocator` to supply memory&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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Pair&lowbar;First(
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator,
    xref:bsl/Pair_BslmaIdiomNone.adoc[Pair&lowbar;BslmaIdiomNone]);
----


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