Construct the second member from the specified value.

Synopsis

Declared in <bslstl_pair.h>

template<
    class PARAM,
    class = void>
requires !bsl::is_same<Pair_Second,
                                      bsl::remove_cvref_t<PARAM>>::value
constexpr
explicit
Pair_Second(PARAM&& value);

Description

Construct the second member of a pair from the specified value without specifying an allocator. This function (perfectly) forwards value to the constructor of (template parameter) TYPE. Note that this constructor is constrained to avoid accidentally becoming a stronger match for the move and copy constructors.

Parameters

Name

Description

value

value forwarded to the constructor of TYPE

Created with MrDocs