Construct a pair from the specified a and b values.
Declared in <bslstl_pair.h>
constexpr
pair(
bsl::add_lvalue_reference<T1 const>::type a,
bsl::add_lvalue_reference<T2 const>::type b);
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.
| Name | Description |
|---|---|
| a | value copied into the first member |
| b | value copied into the second member |