[#bsl-pair-0b-2constructor-00c] = xref:bsl.adoc[bsl]::xref:bsl/pair-0b.adoc[pair]::pair :relfileprefix: ../../ :mrdocs: Construct a `pair` from `a` and `b`, using `basicAllocator`. == Synopsis Declared in `<bslstl_pair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class PARAM_1, class PARAM_2> pair( PARAM_1&& a, PARAM_2&& b, xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator); ---- == Description Construct a `pair` with the `first` member initialized to the specified `a` value and the `second` member initialized to the specified `b` value, using the specified `basicAllocator` to supply memory for each member when its type uses `bslma`‐style allocators. == Parameters [cols="1,4"] |=== | Name| Description | *a* | value forwarded to the constructor of `T1` | *b* | value forwarded to the constructor of `T2` | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#