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

Construct a `pair` from the rvalue `other`, using `basicAllocator`&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(
    std::pair&lt;PARAM&lowbar;1, PARAM&lowbar;2&gt;&& other,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

== Description

Construct a `pair` from the specified `other` rvalue pair, using the specified `basicAllocator` to supply memory for each member when its type uses `bslma`&hyphen;style allocators&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| pair whose members are moved into this pair&apos;s members
| *basicAllocator*
| allocator used to supply memory
|===


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