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

Same as the preceding constructor, using the specified `basicAllocator` to supply memory&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class&period;&period;&period; ARGS&lowbar;1,
    class&period;&period;&period; ARGS&lowbar;2&gt;
pair(
    std::piecewise&lowbar;construct&lowbar;t tag,
    std::tuple&lt;ARGS&lowbar;1&period;&period;&period;&gt; first&lowbar;args,
    std::tuple&lt;ARGS&lowbar;2&period;&period;&period;&gt; second&lowbar;args,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| tag selecting piece&hyphen;wise construction
| *first&lowbar;args*
| tuple of arguments forwarded to the constructor of `T1`
| *second&lowbar;args*
| tuple of arguments forwarded to the constructor of `T2`
| *basicAllocator*
| allocator used to supply memory
|===


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