[#BloombergLP-bdlmt-SignalerConnectionGuard-operator_assign] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/SignalerConnectionGuard.adoc[SignalerConnectionGuard]::operator= :relfileprefix: ../../../ :mrdocs: Move‐assign this guard from `rhs`, disconnecting any prior slot. == Synopsis Declared in `<bdlmt_signaler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/SignalerConnectionGuard.adoc[SignalerConnectionGuard]& operator=(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<SignalerConnectionGuard>] rhs) noexcept; ---- == Description If there is a currently managed slot, call `disconnect` or `disconnectAndWait` on it, depending on the value of the `waitOnDisconnect` state. Make this connection refer to the same slot, if any, as the specified `rhs`, leaving `rhs` in the default‐constructed state. 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. Return `*this`. Throws nothing. == 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]#