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

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

== Synopsis

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

[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;]&
operator&equals;(xref:bsl/pair-0b.adoc[pair&lt;PARAM&lowbar;1, PARAM&lowbar;2&gt;]&& rhs);
----

== Description

Assign to this `pair` the value of the specified `rhs` pair, holding `first` and `second` values of (template parameter) type `PARAM&lowbar;1` and `PARAM&lowbar;2` respectively, and return a reference providing modifiable access to this object&period; This method requires that `T1` be assignable from `PARAM&lowbar;1` and `T2` be assignable from `PARAM&lowbar;2`&period;

== Return Value

reference offering modifiable access to this object

== Parameters

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


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