Construct a pair from the specified a and b values.
Declared in <bslstl_pair.h>
template<
class PARAM_1,
class PARAM_2,
class = void>
requires std::is_constructible<T1, PARAM_1>::value &&
std::is_constructible<T2, PARAM_2>::value &&
!(bsl::is_pointer<bsl::remove_reference_t<PARAM_2>>::value &&
bsl::is_convertible<PARAM_2,
BloombergLP::bslma::Allocator *>::value)
constexpr
pair(
PARAM_1&& a,
PARAM_2&& b);
Construct a pair with the first member initialized to the specified a value and the second member initialized to the specified b value.
| Name | Description |
|---|---|
| a | value forwarded to the constructor of T1 |
| b | value forwarded to the constructor of T2 |