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

Construct a `pair` having the same value as that of the specified `original` pair&period; Optionally specify a `basicAllocator`, used to supply memory for each of `first` and `second` when its type (template parameter `T1` or `T2`, respectively) uses `bslma`&hyphen;style allocators&period; Note that the copy constructor is implicitly declared (if `T1` and `T2` are both `copy&hyphen;constructible`) by compilers that do not support defaulted declarations&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
pair(
    xref:bsl/pair-0b.adoc[pair] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----


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