[#bsl-pair-0b-2constructor-096] = xref:bsl.adoc[bsl]::xref:bsl/pair-0b.adoc[pair]::pair :relfileprefix: ../../ :mrdocs: Create a `pair` from piece‐wise construction of `first` and `second` values by forwarding in order the elements in the specified `first_args` and `second_args` tuples to the corresponding constructor of (template parameter) types `T1` and `T2`, respectively. 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. Allocators can also be passed as tuple members straight to `T1` or `T2` (or both) constructors using the first version (but use of the second version for this approach will result in a compile‐time error). This method requires that `T1` and `T2` be constructible from (the variable number of template parameters) `ARGS_1` and `ARGS_2` respectively. == Synopsis Declared in `<bslstl_pair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class... ARGS_1, class... ARGS_2> pair( std::piecewise_construct_t, std::tuple<ARGS_1...> first_args, std::tuple<ARGS_2...> second_args); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#