bsl::pair::operator=

Assignment operators

Synopses

Declared in <bslstl_pair.h>

Assign to this pair from the specified rhs pair.

template<
    class PARAM_1,
    class PARAM_2,
    class = void>
requires std::is_assignable<T1&, const PARAM_1>::value
                                    && std::is_assignable<T2&, const PARAM_2>::value
constexpr
pair<T1, T2>&
operator=(pair<PARAM_1, PARAM_2> const& rhs);
» more...

Move-assign to this pair the value of the specified rhs pair.

template<
    class PARAM_1,
    class PARAM_2>
constexpr
pair<T1, T2>&
operator=(pair<PARAM_1, PARAM_2>&& rhs);
» more...

Assign to this pair from the specified rhs std::pair.

template<
    class PARAM_1,
    class PARAM_2>
constexpr
pair<T1, T2>&
operator=(std::pair<PARAM_1, PARAM_2> const& rhs);
» more...

Return Value

reference offering modifiable access to this object

Parameters

NameDescription
rhspair whose members are assigned to this pair's members