[#bsl-pair-0b-2constructor-099e] = 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. 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`‐style allocators. This method requires that `T1` and `T2` be `copy‐constructible`. == Synopsis Declared in `<bslstl_pair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr pair( bsl::add_lvalue_reference<T1 const>::type a, bsl::add_lvalue_reference<T2 const>::type b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#