[#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;_]#

Create a `SignalerConnectionGuard` that manages the same slot, if any, as the specified `original`, which is left in the default&hyphen;constructed state&period; Copy the `waitOnDisconnect` state from `original`, indicating whether `disconnect()` or `disconnectAndWait()` will be called on the slot, if any, contained in this object upon destruction or assignment&period; Throws nothing&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 `SignalerConnectionGuard` that refers to the same slot, if any, as the specified `connection`, which is left in an unspecified state&period; Optionally specify `waitOnDisconnect` indicating whether `disconnect` or `disconnectAndWait` will be called on the slot, if any, managed by this object upon destruction or assignment&period; Throws nothing&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 `SignalerConnectionGuard` object that refers to and assumes management of the same slot, if any, as the specified `connection` object&period; Upon destruction or assignment, the optionally specified `waitOnDisconnect` determines whether `disconnect` or `disconnectAndWait` will be called on the slot managed by this object, if any&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;_]#


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