bsl::pair::pair

Construct a pair from a and b, using basicAllocator.

Synopsis

Declared in <bslstl_pair.h>

template<
    class PARAM_1,
    class PARAM_2>
pair(
    PARAM_1&& a,
    PARAM_2&& b,
    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

NameDescription
avalue forwarded to the constructor of T1
bvalue forwarded to the constructor of T2
basicAllocatorallocator used to supply memory