[#BloombergLP-bdlmt-SignalerConnectionGuard-2constructor-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/SignalerConnectionGuard.adoc[SignalerConnectionGuard]::SignalerConnectionGuard
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a `SignalerConnectionGuard` object having no associated slot with `waitOnDisconnect` set to `false`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-08.adoc[SignalerConnectionGuard]();
----

[.small]#xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-08.adoc[_» more&period;&period;&period;_]#

Move&hyphen;construct a guard from `original`, leaving it empty&period;


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

[.small]#xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a guard by moving from `connection`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-02.adoc[SignalerConnectionGuard](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;SignalerConnection&gt;] connection,
    bool waitOnDisconnect = false) noexcept;
----

[.small]#xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-02.adoc[_» more&period;&period;&period;_]#

Create a guard that manages the same slot as `connection`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-0f.adoc[SignalerConnectionGuard](
    xref:BloombergLP/bdlmt/SignalerConnection.adoc[SignalerConnection] const& connection,
    bool waitOnDisconnect = false);
----

[.small]#xref:BloombergLP/bdlmt/SignalerConnectionGuard/2constructor-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| guard to move from
| *connection*
| connection to move from
| *waitOnDisconnect*
| if `true`, use `disconnectAndWait` on release
|===


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