[#bsl-pair-0b-2constructor-009]
= xref:bsl.adoc[bsl]::xref:bsl/pair-0b.adoc[pair]::pair
:relfileprefix: ../../
:mrdocs:

Create a `pair` from the specified `a` and `b` lvalue references&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
pair(
    bsl::add&lowbar;lvalue&lowbar;reference&lt;T1 const&gt;::type a,
    bsl::add&lowbar;lvalue&lowbar;reference&lt;T2 const&gt;::type b,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| value copied into the `first` member
| *b*
| value copied into the `second` member
| *basicAllocator*
| allocator used to supply memory
|===


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