bsl::pair::pair

Construct a pair with the first member initialized to the specified a value and the second member initialized to the specified b value.

Synopsis

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);