[#bsl-pair-0b-operator_assign-04]
= xref:bsl.adoc[bsl]::xref:bsl/pair-0b.adoc[pair]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;bslstl&lowbar;pair&period;h&gt;`

Assign to this `pair` from the specified `rhs` pair&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class PARAM&lowbar;1,
    class PARAM&lowbar;2,
    class = void&gt;
requires std&colon;&colon;is&lowbar;assignable&lt;T1&amp;, const PARAM&lowbar;1&gt;&colon;&colon;value
                                    &amp;&amp; std&colon;&colon;is&lowbar;assignable&lt;T2&amp;, const PARAM&lowbar;2&gt;&colon;&colon;value
constexpr
xref:bsl/pair-0b.adoc[pair&lt;T1, T2&gt;]&
xref:bsl/pair-0b/operator_assign-0f.adoc[operator&equals;](xref:bsl/pair-0b.adoc[pair&lt;PARAM&lowbar;1, PARAM&lowbar;2&gt;] const& rhs);
----

[.small]#xref:bsl/pair-0b/operator_assign-0f.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assign to this `pair` the value of the specified `rhs` pair&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class PARAM&lowbar;1,
    class PARAM&lowbar;2&gt;
constexpr
xref:bsl/pair-0b.adoc[pair&lt;T1, T2&gt;]&
xref:bsl/pair-0b/operator_assign-0b.adoc[operator&equals;](xref:bsl/pair-0b.adoc[pair&lt;PARAM&lowbar;1, PARAM&lowbar;2&gt;]&& rhs);
----

[.small]#xref:bsl/pair-0b/operator_assign-0b.adoc[_» more&period;&period;&period;_]#

Assign to this `pair` from the specified `rhs` `std&colon;&colon;pair`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class PARAM&lowbar;1,
    class PARAM&lowbar;2&gt;
constexpr
xref:bsl/pair-0b.adoc[pair&lt;T1, T2&gt;]&
xref:bsl/pair-0b/operator_assign-02.adoc[operator&equals;](std::pair&lt;PARAM&lowbar;1, PARAM&lowbar;2&gt; const& rhs);
----

[.small]#xref:bsl/pair-0b/operator_assign-02.adoc[_» more&period;&period;&period;_]#

== Return Value

reference offering modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| pair whose members are assigned to this pair&apos;s members
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
