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

Construct a `pair` with the `first` member initialized to the specified `a` value and the `second` member initialized to the specified `b` value, using the specified `basicAllocator` to supply memory for each member when its type uses `bslma`&hyphen;style allocators&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class PARAM&lowbar;1,
    class PARAM&lowbar;2&gt;
pair(
    PARAM&lowbar;1&& a,
    PARAM&lowbar;2&& b,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----


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