[#BloombergLP-bdlmt-SignalerConnectionGuard-operator_assign]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/SignalerConnectionGuard.adoc[SignalerConnectionGuard]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Move&hyphen;assign this guard from `rhs`, disconnecting any prior slot&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;signaler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/SignalerConnectionGuard.adoc[SignalerConnectionGuard]&
operator&equals;(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;SignalerConnectionGuard&gt;] rhs) noexcept;
----

== Description

If there is a currently managed slot, call `disconnect` or `disconnectAndWait` on it, depending on the value of the `waitOnDisconnect` state&period; Make this connection refer to the same slot, if any, as the specified `rhs`, leaving `rhs` in the default&hyphen;constructed state&period; Use the `waitOnDisconnect` state of `rhs`, indicating whether `disconnect()` or `disconnectAndWait()` will be called on the slot managed by this object upon destruction or assignment&period; Return `&ast;this`&period; Throws nothing&period;

== Return Value

a reference to this guard

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| guard to move from
|===


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