[#bsl-pair-0b-operator_assign-04] = xref:bsl.adoc[bsl]::xref:bsl/pair-0b.adoc[pair]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<bslstl_pair.h>` Assign to this `pair` from the specified `rhs` pair. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 xref:bsl/pair-0b.adoc[pair<T1, T2>]& xref:bsl/pair-0b/operator_assign-0f.adoc[operator=](xref:bsl/pair-0b.adoc[pair<PARAM_1, PARAM_2>] const& rhs); ---- [.small]#xref:bsl/pair-0b/operator_assign-0f.adoc[_» more..._]# Move‐assign to this `pair` the value of the specified `rhs` pair. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class PARAM_1, class PARAM_2> constexpr xref:bsl/pair-0b.adoc[pair<T1, T2>]& xref:bsl/pair-0b/operator_assign-0b.adoc[operator=](xref:bsl/pair-0b.adoc[pair<PARAM_1, PARAM_2>]&& rhs); ---- [.small]#xref:bsl/pair-0b/operator_assign-0b.adoc[_» more..._]# Assign to this `pair` from the specified `rhs` `std::pair`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class PARAM_1, class PARAM_2> constexpr xref:bsl/pair-0b.adoc[pair<T1, T2>]& xref:bsl/pair-0b/operator_assign-02.adoc[operator=](std::pair<PARAM_1, PARAM_2> const& rhs); ---- [.small]#xref:bsl/pair-0b/operator_assign-02.adoc[_» more..._]# == Return Value reference offering modifiable access to this object == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | pair whose members are assigned to this pair's members |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#