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

Construct a `pair` from the specified `other` pair&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,
    class = void&gt;
requires std&colon;&colon;is&lowbar;constructible&lt;T1, const PARAM&lowbar;1&amp;&gt;&colon;&colon;value &amp;&amp;
                            std&colon;&colon;is&lowbar;constructible&lt;T2, const PARAM&lowbar;2&amp;&gt;&colon;&colon;value
constexpr
pair(xref:bsl/pair-0b.adoc[pair&lt;PARAM&lowbar;1, PARAM&lowbar;2&gt;] const& other);
----

== Description

Construct a `pair` from the specified `other` pair, holding `first` and `second` values of (template parameter) type `PARAM&lowbar;1` and `PARAM&lowbar;2` respectively&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| pair whose members initialize this pair&apos;s members
|===


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